Script result: Async
StackState Self-hosted v5.1.x
Working with AsyncScriptResult.then
AsyncScriptResult.thenasyncScriptResult = ScriptApi.asyncFn()
asyncScriptResult.then { result -> result.toString() }ScriptApi.asyncFn().then { it.toString() }Chaining
ScriptApi.asyncFn1()
.then { ScriptApi.asyncFn2(it) }
.then { ScriptApi.asyncFn3(it) }Chaining with a StreamingScriptResult
StreamingScriptResultFlattening
Transforming a list using thenCollect
thenCollectReducing with thenInject
thenInjectHandling Exceptions
See also
Last updated