Makes sure that events are emitted within ms. Otherwise emits an error.
ms
TimeoutError
readableStream .pipeThrough(timeout(1_000)) .pipeTo(write()) .catch(error => { // error is TimeoutError if any event took too long }) Copy
readableStream .pipeThrough(timeout(1_000)) .pipeTo(write()) .catch(error => { // error is TimeoutError if any event took too long })
Generated using TypeDoc
Makes sure that events are emitted within
ms
. Otherwise emits an error.