You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a future rejects, the children futures are not rejected. This causes fail blocks of the children future to never be called.
Example
Without children
Future<Int> {
throw NSError(...)
}.fail { error in
// This is called as expected
}
With children
Future<Int> {
throw NSError(...)
}.then { x -> String in // Child future
return "\(x)"
}.fail { error in
// This is never called as fail block belongs to the child future
}
The text was updated successfully, but these errors were encountered:
When a future rejects, the children futures are not rejected. This causes
fail
blocks of the children future to never be called.Example
Without children
With children
The text was updated successfully, but these errors were encountered: