tuweni / org.apache.tuweni.concurrent.coroutines / org.apache.tuweni.concurrent.AsyncResult / asDeferred

asDeferred

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

Converts this AsyncResult to an instance of Deferred. The AsyncResult is cancelled when the resulting deferred is cancelled.