EasyFutures
EasyFutures copied to clipboard
How to continue promise-future chain on error?
Example:
let promise = Promise<Void>()
Dispatch.global.async {
... //fulfill promise with success or error
}
promise.future.onError { error in
...//some async actions
}
How to append "some async actions" to the action chain correctly if they are executed in error case only?