fun <T> AsyncResult<T>.asDeferred(): Deferred<T>
Converts this AsyncResult to an instance of Deferred. The AsyncResult is cancelled when the resulting deferred is cancelled.