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
let asyncFunc = async({ _ -> Int in
let loggedUser = try await(loginUser(username,pass))
let followersList = try await(getFollowers(loggedUser))
let countUnfollowed = try await(unfollow(followersList))
return countUnfollowed
}).then({ value in
print("Unfollowed \(value) users")
})
How would I make that cancelable?
The text was updated successfully, but these errors were encountered:
malcommac
changed the title
await and cancel
Added support for cancellable Promise in await operator
Aug 29, 2017
malcommac
changed the title
Added support for cancellable Promise in await operator
Add support for cancellable Promise in await operator
Aug 29, 2017
Let's say I use the example:
How would I make that cancelable?
The text was updated successfully, but these errors were encountered: