Applies a timeout policy for each element in the async-iterable sequence.
If the next element isn't received within the specified timeout duration starting from its predecessor, a TimeoutError is thrown.
Type Parameters
TSource
The type of the elements in the source sequence.
Parameters
dueTime: number
Maximum duration in milliseconds between values before a timeout occurs.
Returns MonoTypeOperatorAsyncFunction<TSource>
The source sequence with a TimeoutError in case of a timeout.
Applies a timeout policy for each element in the async-iterable sequence. If the next element isn't received within the specified timeout duration starting from its predecessor, a TimeoutError is thrown.