UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

152 lines (68 loc) 1.74 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [\_Promise](./rc-js-util._promise.md) ## \_Promise class Utilities for handling promises. **Signature:** ```typescript export declare class _Promise ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [delay](./rc-js-util._promise.delay.md) </td><td> `static` `readonly` </td><td> typeof promiseDelay </td><td> Returns a `Promise` which will resolve to `resolveWith` after a delay of `delay` (in milliseconds). </td></tr> <tr><td> [poll](./rc-js-util._promise.poll.md) </td><td> `static` `readonly` </td><td> typeof promisePoll </td><td> </td></tr> <tr><td> [rejectFalse](./rc-js-util._promise.rejectfalse.md) </td><td> `static` `readonly` </td><td> typeof promiseRejectFalse </td><td> Returns a Promise of rejection with the supplied error if the `value` is false. </td></tr> <tr><td> [rejectFalsey](./rc-js-util._promise.rejectfalsey.md) </td><td> `static` `readonly` </td><td> typeof promiseRejectFalsey </td><td> Returns a Promise of rejection with the supplied error if the `value` is falsy. </td></tr> <tr><td> [rejectNull](./rc-js-util._promise.rejectnull.md) </td><td> `static` `readonly` </td><td> typeof promiseRejectNull </td><td> Returns a Promise of rejection with the supplied error if the value is `null` or `undefined`<!-- -->. </td></tr> </tbody></table>