Whatever message this page gives is out now! Go check it out!
future.thenAccept(action)| Parameter | Description |
|---|---|
| action | Required. A function that takes the previous result and performs an action (void return). |
future = runAsync(function() { return "test"; });
future.thenAccept(function(x) { variables.consumed = x; }).get();
writeOutput(variables.consumed); // test