Skip to main content

waitForStreamComplete

@h4ad/serverless-adapter > waitForStreamComplete

(function) waitForStreamComplete

Wait asynchronous the stream to complete

Signature:

export declare function waitForStreamComplete<TStream extends Readable | Writable>(stream: TStream): Promise<TStream>;

Parameters

ParameterTypeDescription
streamTStreamThe stream

Returns:

Promise<TStream>