tuweni / org.apache.tuweni.concurrent.coroutines / kotlinx.coroutines.Deferred / asAsyncResult

asAsyncResult

fun <T> Deferred<T>.asAsyncResult(): AsyncResult<T> (source)

Converts this deferred value to an AsyncResult. The deferred value is cancelled when the returned AsyncResult is cancelled or otherwise completed.