suspend

fun <T> suspend(timeoutMsecs: Long = -1, initfn: (SyncContinuation<T>) -> Unit): T

Calls an init function which is responsible for saving our continuation so that some other thread can call resume or resume with exception.

Essentially this is a blocking version of the (buggy) coroutine suspendCoroutine