From c8596b1da3bd50c1c2029d52a12654e19908deb8 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Sat, 25 Aug 2018 18:18:12 +0200 Subject: [PATCH] fix(docs): fix wrong function name in docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90f05fe..74a39d3 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ npm install abortable-rx - `toPromise(observable: Observable, signal?: AbortSignal): Promise` 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(source: Observable, next: (value: T) => void, signal?: AbortSignal): Promise` +- `forEach(source: Observable, next: (value: T) => void, signal?: AbortSignal): Promise` 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