Skip to content
/ ipc Public

IPC for Swift Concurrency

Notifications You must be signed in to change notification settings

swiftstack/ipc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipc

Example

let broadcast = Broadcast<Bool>()

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

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

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

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

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

await condition.notify()

Releases

No releases published

Packages

No packages published