On Failure
An alias of ItBlock indicating a callback for something occurring exceptionally.
NOTE: The exception should not be re-thrown within the OnFailure lambda. If OnFailure 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 OnFailure.toImmediateErrorJob(name: String, cause: Throwable, handler: UncaughtException.Handler): EnqueuedJob
Creates a EnqueuedJob which immediately invokes OnFailure with the provided cause.