Whatever message this page gives is out now! Go check it out!
future.thenApply(function)| Parameter | Description |
|---|---|
| function | Required. A function that takes the previous result and returns the next value. |
future = runAsync(function() { return 5; })
.thenApply(function(x) { return x * 2; })
.thenApplyAsync(function(x) { return x + 5; })
.thenApply(function(x) { return x * 2; })
.thenApplyAsync(function(x) { return x + 10; });
writeOutput(future.get()); // 40