Swiftpack.co - Package - CodeEagle/CombineEx

CombineEx

Improving Combine by adding All, Any, Await, Race operators, similar to Promises

Thread safe for all adding operators

Installation

Swift Package Manager

.package(url: "https://github.com/CodeEagle/CombineEx.git", from: "1.0.0")

All

// same type
all(publisher...)
all([publisher])

// different type
all(a, b)
// max to four different pulisher
all(a, b, c, d)

Any

// same type
any(publisher...)
any([publisher])

// different type
any(a, b)
// max to four different pulisher
any(a, b, c, d)

Await

_ = try publisher.await()

Race

// only support same type racing
race(publisher...)
race([publisher])

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: