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

31 lines
685 B
Markdown
Raw Permalink Normal View History

<!-- 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
2021-08-08 19:58:43 +00:00
Resolve if `cb` returns true within `max` tries, otherwise reject with a `TimeoutError`<!-- -->.
<b>Signature:</b>
```typescript
2021-08-08 19:58:43 +00:00
export declare function deferUntil(cb: PredicateC0, step: number, max: number): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| cb | PredicateC0 | |
| step | number | |
2021-08-08 19:58:43 +00:00
| max | number | |
<b>Returns:</b>
Promise&lt;void&gt;
## Exceptions
TimeoutError