Notify class
Objectのwait/notifyパターンを提供する.
キャンセル可能な待ち合わせ及び Notify.delay のスリープ処理を提供する. キャンセルが発生した場合、 CancellationException を投げる.
利用終了後、必ず dispose でメモリを解放する.
Constructors
- Notify()
Properties
Methods
-
delay(
Duration duration) → Future - 指定時間処理を停止する. dispose()が発行された場合、その時点で CancellationException を発行して呼び出し元へ戻る.
-
dispose(
) → Future - Notifyを終了する. 現在待ち合わせているリソースはすべてCancelが発行される.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void - wait()しているオブジェクトの動作を再開する
-
toString(
) → String -
A string representation of this object.
inherited
-
wait(
{String message = 'Notify.dispose() called'}) → Future - 何らかのNotify()が発行されるまで待ち合わせる.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited