On this page
Trait Awaitable.Awaitable
trait Awaitable[+T]
An object that may eventually be completed with a result value of type T
which may be awaited using blocking methods.
The Await object provides methods that allow accessing the result of an Awaitable
by blocking the current thread until the Awaitable
has been completed or a timeout has occurred.
Supertypes | |
---|---|
Known subtypes |
Abstract methods
Source
Await the "completed" state of this Awaitable
.
This method should not be called directly; use Await.ready instead.
Value parameters |
|
---|---|
Returns | this |
Throws |
|
Source
Await and return the result (of type T
) of this Awaitable
.
This method should not be called directly; use Await.result instead.
Value parameters |
|
---|---|
Returns | the result value if the |
Throws |
|
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/concurrent/Awaitable.html