async_notify
CI / CD | ビルドステータス |
---|---|
Github Actions |
Features
Notify(wait-notify) support Library.
- Notify Message(Object)の非同期待ち合わせ.
- NotifyChannel 非同期の値送信/待ち合わせ.
Usage
// Notify
final notify = Notify();
await notify.wait(); // wait Notify.notify() call.
// finalize.
notify.dispose();
// NotifyChannel.
final notify = Notify();
final channel = NotifyChannel<int>(notify);
await channel.receive(); // wait NotifyChannel.send(value);
// finalize.
notify.dispose();