SyncContinuation

A blocking version of coroutine Continuation using traditional threading primitives.

This is useful in contexts where coroutine suspension is not desirable or when bridging with legacy threaded code.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun await(timeoutMsecs: Long = 0): T

Blocks the current thread until the result is available or the timeout expires.

Link copied to clipboard
abstract fun resume(res: ERROR CLASS: Symbol not found for Result<T>)
open override 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.