Crate swimos_trigger

Crate swimos_trigger 

Source
Expand description

§Asynchronous Trigger

This crate provides a SPMC barrier where any number of parties can wait for a single other party to complete an action.

Additionally, a promise implementation is provided, implemented in terms of the trigger, that allows any number of parties to wait for a single producer to generate a value.

Modules§

promise

Structs§

Receiver
A receiving party of a trigger.
Sender
The sending party of a trigger.
TriggerError
An error generated if the Sender was dropped before it was triggered.

Functions§

trigger
Create a simple one to many asynchronous trigger. Every copy of the receiver will complete successfully (when the sender is triggered) or with an error (if the sender is dropped).