@ue-too/board / index / Observable
インターフェイス: Observable<T>
定義: packages/board/src/utils/observable.ts:71
Interface for the Observable pattern implementation.
Remarks
Observables allow multiple observers to subscribe and receive notifications when data is emitted. This is the pub-sub pattern for event handling.
Implementations can be synchronous or asynchronous:
- SynchronousObservable: Notifies observers immediately
- AsyncObservable: Notifies observers via microtasks
型パラメーター
T
T extends any[]
Tuple type of data emitted to observers
メソッド
notify()
notify(...
data):void
定義: packages/board/src/utils/observable.ts:73
パラメータ
data
...T
戻り値
void
subscribe()
subscribe(
observer,options?): () =>void
定義: packages/board/src/utils/observable.ts:72
パラメータ
observer
Observer<T>
options?
戻り値
():
void
戻り値
void