Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Dec 11, 2018
1 parent 206a349 commit daa8f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -306,7 +306,7 @@ deferred.resolve( ); // This is now legal, typewise

## reflect

A promise can be either resolved or rejected, but sometimes it's convenient to have a shared flow for either occasion. That's when `reflect` comes in handy. It takes a promise as argument, and returns a promise to a `Reflection` object which contains the promise **or** error, and the booleans `isResolved` and `isRejected`.
A promise can be either resolved or rejected, but sometimes it's convenient to have a shared flow for either occasion. That's when `reflect` comes in handy. It takes a promise as argument, and returns a promise to a `Reflection` object which contains the *value* **or** *error*, and the booleans `isResolved` and `isRejected`.

```ts
import { reflect } from 'already'
Expand Down
1 change: 1 addition & 0 deletions lib/index.ts
Expand Up @@ -20,6 +20,7 @@ export default {
Try,
specific,
rethrow,
wrapFunction,
}

export function delay( milliseconds: number ): Promise< void >;
Expand Down

0 comments on commit daa8f75

Please sign in to comment.