#2775 - Adding migration guide for waiting on promises

This commit is contained in:
Viktor Klang 2013-01-20 12:43:24 +01:00
parent 00a39232cc
commit 13b1324509

View file

@ -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
============================