目录
目录README.md

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")

Usage

Remember to keep the AnyCancelabel in your own

All

// 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])
关于
57.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号