CallbackContinuation

class CallbackContinuation<in T>(cb: (ERROR CLASS: Symbol not found for Result<T>) -> Unit) : Continuation<T> (source)

An async continuation that calls a callback when the result is available.

Constructors

Link copied to clipboard
constructor(cb: (ERROR CLASS: Symbol not found for Result<T>) -> Unit)

Functions

Link copied to clipboard
open override fun resume(res: ERROR CLASS: Symbol not found for Result<T>)
abstract fun resume(res: ERROR CLASS: Symbol not found for Result<T>)
Link copied to clipboard
open fun resumeSuccess(res: T)

Syntactic sugar for resuming with success.

Link copied to clipboard

Syntactic sugar for resuming with failure.