Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function: until()

until(cond, within?): Promise<any>

Resolves with cond’s value once it stops throwing, or rejects on timeout. await it (reads as await until(...)); the resolved value lets .value() bind a verified value. While waiting it yields the event loop, so several until/ verifyAudio can run under await Promise.all([...]).

Parameters

cond

() => unknown

within?

string

Returns

Promise<any>