// same type
let token = all(publisher...)
let token = all([publisher])
// different type
let token = all(a, b)
// up to four different pulisher
let token = all(a, b, c, d)
Any
// same type
let token = any(publisher...)
let token = any([publisher])
// different type
let token = any(a, b)
// up to four different pulisher
let token = any(a, b, c, d)
Await
_ = try publisher.await()
Race
// only support same type racing
let token = race(publisher...)
let token = race([publisher])
CombineEx
Improving Combine by adding
All
,Any
,Await
,Race
operators, similar toPromises
Thread safe for all adding operators
Installation
Swift Package Manager
Usage
Remember to keep the
AnyCancelabel
in your ownAll
Any
Await
Race