Skip to content

Commit

Permalink
Bump patch version to fix compiled JS source
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernie Turner committed Nov 26, 2018
1 parent f659556 commit 6c5e07a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
27 changes: 20 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,28 @@ export default class Future<L, R> {
future4: Future<L, R4>
): Future<L, [R1, R2, R3, R4]>;
/**
* Returns a new Future which will run all of the provided futures in parallel. The returned Future will be resolved if all
* of the futures resolve and the results will be in an array properly indexed to how they were passed in. If any of the Futures
* reject, then no results are returned
* Returns a new Future which will run all of the provided futures in parallel. The returned Future will be resolved if all of the Futures
* resolve. If an array of Futures is provided the results will be in an array properly indexed to how they were provided. If an object of
* Futures is provided the results will be an object with the same keys as the objected provided. If any of the Futures reject, then no results
* are returned.
*/
static all<L, R>(futures: Array<Future<L, R>>): Future<L, R[]>;
static all<L, R>(futures: {
[key: string]: Future<L, R>;
}): Future<
L,
{
[key: string]: R;
}
>;
/**
* Run all of the Futures in the provided array in parallel and resolve with an array where the results are in the same index
* as the provided array.
*/
private static allArray;
/**
* Returns a new Future which will run all of the provided futures in parallel. The returned Future will be resolved if all
* of the futures resolve and the results will be in an object properly indexed to how they were passed in. If any of the Futures
* reject, then no results are returned
* Run all of the Futures in the provided Future map in parallel and resolve with an object where the results are in the same key
* as the provided map.
*/
static all<L, R>(futures: {[key: string]: Future<L, R>}): Future<L, {[key: string]: R}>;
private static allObject;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "futurejs",
"version": "2.1.0",
"version": "2.1.1",
"description": "Promise-alternative library for doing asynchronous operations",
"repository": "https://github.com/IronCoreLabs/futurejs",
"author": "IronCore Labs",
Expand Down

0 comments on commit 6c5e07a

Please sign in to comment.