On Success
An alias of ItBlock indicating a callback for something occurring successfully.
NOTE: Exceptions should not be thrown within the OnSuccess lambda. If OnSuccess is being utilized with TorRuntime APIs, it will be treated as an UncaughtException and dispatched to io.matthewnelson.kmp.tor.runtime.RuntimeEvent.ERROR observers.
See also
Functions
Link copied to clipboard
fun <T> OnSuccess<T>.toImmediateSuccessJob(name: String, response: T, handler: UncaughtException.Handler): EnqueuedJob
Creates a EnqueuedJob which immediately invokes OnSuccess with the provided response.