Type alias TaskGenerator<T, TT, R>

TaskGenerator<T, TT, R>: Generator<TT, R, T>

Task generator

Type Parameters

  • T

  • TT extends Task<T>

    yielded task type

  • R

    returned task resolve type

Example

const generatorFunction = function*(): TaskGenerator<unknown, Task<string>, number> {
const v = yield* someTaskFunction().generator();

return v.length;
};

Generated using TypeDoc