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

asDeferred

fun AsyncCompletion.asDeferred(): Deferred<Unit> (source)

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