Remove remnants of the every() method
This commit is contained in:
parent
3539b5f5df
commit
41c9ce7dca
14
README.md
14
README.md
@ -146,18 +146,4 @@ export declare function once<T>(
|
|||||||
emitter: NodeJS.EventEmitter,
|
emitter: NodeJS.EventEmitter,
|
||||||
event: string,
|
event: string,
|
||||||
): Promise<T>;
|
): Promise<T>;
|
||||||
|
|
||||||
/**
|
|
||||||
* Eagerly resolve to false as soon as any of the promises has resolved to a value for which the
|
|
||||||
* predicate is falsey, or resolve to true when all of the promises have resolved to a value for which
|
|
||||||
* the predicate is thruthy, or rejects with the reason of the first promise rejection
|
|
||||||
*
|
|
||||||
* @param promises Promises whose resolved values will be tested by the predicate
|
|
||||||
* @param predicate Predicate to apply
|
|
||||||
* @returns Promise indicating whether the predicate holds for all resolved promise values
|
|
||||||
*/
|
|
||||||
export declare function every<T>(
|
|
||||||
promises: Array<Promise<T>>,
|
|
||||||
predicate: (value: T) => boolean,
|
|
||||||
): Promise<boolean>;
|
|
||||||
```
|
```
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import test from "ava";
|
import test from "ava";
|
||||||
import { expect } from "chai";
|
import { expect } from "chai";
|
||||||
import { EventEmitter } from "events";
|
import { EventEmitter } from "events";
|
||||||
import { once, sleep, delay, every } from "./utils";
|
import { once, sleep, delay } from "./utils";
|
||||||
|
|
||||||
const TimingErrorMarginMs = 50;
|
const TimingErrorMarginMs = 50;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user