镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
swiftstackPublic

About

IPC for Swift Concurrency

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPC

Example

let broadcast = Broadcast<Bool>()

_ = Task.detached {
    print(await broadcast.wait())
    // prints true
}

_ = Task.detached {
    print(await broadcast.wait())
    // prints true
}

await broadcast.dispatch(true)
let condition = Condition()

_ = Task.detached {
    await condition.wait()
}

_ = Task.detached {
    await condition.wait()
}

await condition.notify()

About

IPC for Swift Concurrency

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages