StreamDoneTimeoutExt<T> extension

on

Methods

timeoutDone(Duration duration, {void onTimeout(StreamSink<T> sink)?, bool? cancelOnError = true}) Stream<T>

Available on Stream<T>, provided by the StreamDoneTimeoutExt extension

设定stream 的 done 超时