Skip to content
module@warp-drive/core/signals/-leaked

Function waitFor()

ts
function waitFor<K>(promise): Promise<K>;

Defined in: warp-drive-packages/core/src/signals/reactivity/configure.ts:228

Wraps promise using the configured SignalHooks.waitFor, if any, for things like test-waiters. Returns promise unchanged if no waitFor hook is configured.

Type Parameters

K

K

Parameters

promise

Promise<K>

Returns

Promise<K>

Released under the MIT License.