waitFor
waitFor(
condition,options):Promise<void>
Defined in: src/batch.ts:83
Polls condition every interval until it returns true. Rejects with TimeoutRejectedError after timeout,
and with the error if condition throws (wrap it in .catch(() => false) to treat errors as “not yet”).
Parameters
Section titled “Parameters”condition
Section titled “condition”(signal) => MaybePromise<boolean>
options
Section titled “options”Returns
Section titled “Returns”Promise<void>