30 lines
620 B
Markdown
30 lines
620 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [waitFor](./js-utils.waitfor.md)
|
|
|
|
## waitFor() function
|
|
|
|
> Warning: This API is now obsolete.
|
|
>
|
|
> use `deferUntil` instead
|
|
>
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export declare function waitFor(cb: PredicateC0, step: number, tries: number): Promise<void>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| cb | PredicateC0 | |
|
|
| step | number | |
|
|
| tries | number | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Promise<void>
|
|
|