Skip to content

promiseValueToAsyncIterableIterator

promiseValueToAsyncIterableIterator<T>(promise): AsyncIterableIterator<T>

Defined in: packages/core/src/promise/promise-to-async-iterable-iterator.ts:9

Converts a promise to an async iterable iterator that yields the resolved value once.

T

PromiseLike<T>

The promise to convert.

AsyncIterableIterator<T>

An async iterable iterator that yields the resolved value of the promise once.