From 960f207390615588111a4cf0238e62403c9c7eed Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 6 May 2021 19:56:35 +0300 Subject: [PATCH] mapAsyncIterator: refactor async iterator (#3064) --- src/subscription/mapAsyncIterator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subscription/mapAsyncIterator.js b/src/subscription/mapAsyncIterator.js index c885450695..30647c30c5 100644 --- a/src/subscription/mapAsyncIterator.js +++ b/src/subscription/mapAsyncIterator.js @@ -37,7 +37,7 @@ export function mapAsyncIterator( async next() { return mapResult(await iterator.next()); }, - async return(): Promise> { + async return(): Promise> { return typeof iterator.return === 'function' ? mapResult(await iterator.return()) : { value: undefined, done: true };