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

31 lines
675 B
Markdown
Raw 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
Reject after a set number of attempts if the given predicate does not return true.
<b>Signature:</b>
```typescript
export declare function deferUntil(cb: PredicateC0, step: number, tries: number): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| cb | PredicateC0 | |
| step | number | |
| tries | number | |
<b>Returns:</b>
Promise&lt;void&gt;
## Exceptions
TimeoutError