Is this Awaitable ready? In other words: would calling Awaitable.ready block?
Is this Awaitable ready? In other words: would calling Awaitable.ready block?
Support for Await.ready
.
Support for Await.ready
. The use of the implicit permit is an
access control mechanism: only Await.ready
may call this
method.
Support for Await.result
.
Support for Await.result
. The use of the implicit permit is an
access control mechanism: only Await.result
may call this
method.
Close the resource with the given deadline.
Close the resource with the given deadline. This deadline is advisory, giving the callee some leeway, for example to drain clients or finish up other tasks.
Close the resource with the given timeout.
Close the resource with the given timeout. This timeout is advisory, giving the callee some leeway, for example to drain clients or finish up other tasks.
Close the resource.
Close the resource. The returned Future is completed when the resource has been fully relinquished.