You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
447 B
12 lines
447 B
import { PromiseOrValue } from '../jsutils/PromiseOrValue';
|
|
|
|
/**
|
|
* Given an AsyncIterable and a callback function, return an AsyncIterator
|
|
* which produces values mapped via calling the callback function.
|
|
*/
|
|
export default function mapAsyncIterator<T, U>(
|
|
iterable: AsyncIterable<T>,
|
|
callback: (arg: T) => PromiseOrValue<U>,
|
|
rejectCallback?: (arg: any) => PromiseOrValue<U>,
|
|
): any; // TS_SPECIFIC: AsyncGenerator requires typescript@3.6
|