Inherited from Serializable
Inherited by implicit conversion any2stringadd from
Await[Value] to any2stringadd[Await[Value]]
Inherited by implicit conversion StringFormat from
Await[Value] to StringFormat[Await[Value]]
Inherited by implicit conversion Ensuring from
Await[Value] to Ensuring[Await[Value]]
Inherited by implicit conversion ArrowAssoc from
Await[Value] to ArrowAssoc[Await[Value]]
Await is a Keyword to extract value from a scala.concurrent.Future.
This keyword is available in functions whose return types are Future, domains.task.Task, or any exception aware continuations as
(_ !! Throwable !! _)
.Author:
杨博 (Yang Bo)
Other keywords, including Return or Get, can be used together with Await
!Await
can be used together withtry
/catch
/finally
.Given a Future:
You can Await the Future in another Future
A Future can be converted to a domains.task.Task with the help of Await.
Then a domains.task.Task can be converted back to a scala.concurrent.Future via domains.task.Task.toFuture.