async_notify 0.0.2 copy "async_notify: ^0.0.2" to clipboard
async_notify: ^0.0.2 copied to clipboard

Notify wait/notify library.

async_notify

CI / CD ビルドステータス
Github Actions 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();

Additional information #