Skip to content

Commit

Permalink
fix(docs): fix wrong function name in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Aug 25, 2018
1 parent 4ff1dc5 commit c8596b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ npm install abortable-rx

- `toPromise<T>(observable: Observable<T>, signal?: AbortSignal): Promise<T>`
Returns a Promise that resolves with the last emission of the given Observable, rejects if the Observable errors or rejects with an `AbortError` when the AbortSignal is aborted.
- `toPromise<T>(source: Observable<T>, next: (value: T) => void, signal?: AbortSignal): Promise<void>`
- `forEach<T>(source: Observable<T>, next: (value: T) => void, signal?: AbortSignal): Promise<void>`
Calls `next` for every emission and returns a Promise that resolves when the Observable completed, rejects if the Observable errors or rejects with an `AbortError` when the AbortSignal is aborted.

### Observable operators
Expand Down

0 comments on commit c8596b1

Please sign in to comment.