-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can make Additions for when(action1, action2...)
usages ?
#28
Comments
when(action1, action2...)
issues ?when(action1, action2...)
usages ?
+1 for that |
This would be so useful. |
@yannickl Hey dude, I've been promoting this libraries' awesomeness every minute I get a chance to, and wrote a blog post on it. Reckon this task's a possibility? :-) |
I don't know if I would support this syntax because If we start it requires to implements all the possible signature. May be the try await(when(t1, t2, t3)) I don't have time for the moment, so if someone want to implement this, he/she's welcome. @J7mbo thank you for your support, that's nice! |
Any updates on implementing |
@Qwerp-Derp I don't have time to implement something similar. But there is this alternative that is working: let p1 = myPromise1()
let p2 = myPromise2()
let p3 = myPromise3()
try! await(when(fulfilled: [p1, p2, p3])) The only drawback is that the |
for PromiseKit usage:
when(xxx, xxx).then { r1, r2 in
....
}
adding for AwaitKit? just like:
let (r1, r2) = try await(xxx, xxx)
The text was updated successfully, but these errors were encountered: