#2775 - Adding migration guide for waiting on promises
This commit is contained in:
parent
00a39232cc
commit
13b1324509
1 changed files with 18 additions and 0 deletions
|
|
@ -113,7 +113,15 @@ v2.1::
|
|||
case m: NoSuchElementException =>
|
||||
}
|
||||
|
||||
A ``Promise`` is no longer also a ``Future``, obtain the reference to its Future by calling ``promise.future``.
|
||||
|
||||
v2.0::
|
||||
|
||||
Await.result(promise, duration)
|
||||
|
||||
v2.1::
|
||||
|
||||
Await.result(promise.future, duration)
|
||||
|
||||
API Changes to Future - Java
|
||||
============================
|
||||
|
|
@ -191,6 +199,16 @@ v2.1::
|
|||
}
|
||||
}, ec);
|
||||
|
||||
A ``Promise`` is no longer also a ``Future``, obtain the reference to its Future by calling ``promise.future()``.
|
||||
|
||||
v2.0::
|
||||
|
||||
Await.result(promise, duration);
|
||||
|
||||
v2.1::
|
||||
|
||||
Await.result(promise.future(), duration);
|
||||
|
||||
API changes to DynamicAccess
|
||||
============================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue