sdk.watcher.waitforwatch
Home > @matterway/sdk > Watcher > waitForWatch
Watcher.waitForWatch() function
Waits for a watcher to match, and resolves with the value.
Signature:
export declare function waitForWatch<T>(ctx: Context, spec: WaitForWatchSpec<T>): Promise<T>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | |
spec | WaitForWatchSpec<T> |
Returns:
Promise<T>