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
Parameter | Type | Description |
---|---|---|
stream | TStream | The stream |
Returns:
Promise<TStream>