1
0
Fork 0
js-utils/docs/api/js-utils.deferuntil.md

31 lines
685 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [deferUntil](./js-utils.deferuntil.md)
## deferUntil() function
Resolve if `cb` returns true within `max` tries, otherwise reject with a `TimeoutError`<!-- -->.
<b>Signature:</b>
```typescript
export declare function deferUntil(cb: PredicateC0, step: number, max: number): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| cb | PredicateC0 | |
| step | number | |
| max | number | |
<b>Returns:</b>
Promise&lt;void&gt;
## Exceptions
TimeoutError