• Hold up a stream until a promise resolves. If it errors, the error will be emitted to the stream.

    Type Parameters

    • T

    Parameters

    • promise: Promise<void> | ((chunk) => Promise<void>)

    Returns TransformStream<T, T>

    Example

    ----a-------b------|

    interpose(async () => await setTimeout(50))

    --------a--------b-|

Generated using TypeDoc