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