Removing the erronous execution context and added Java API
This commit is contained in:
parent
51a218b87f
commit
d910eeae69
4 changed files with 35 additions and 6 deletions
|
|
@ -381,6 +381,7 @@ public class FutureDocTestBase {
|
|||
@Test public void useOnSuccessOnFailureAndOnComplete() {
|
||||
{
|
||||
Future<String> future = Futures.successful("foo", system.dispatcher());
|
||||
|
||||
//#onSuccess
|
||||
future.onSuccess(new OnSuccess<String>() {
|
||||
public void onSuccess(String result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue