bindDisposable method

StreamSink<T> bindDisposable(
  1. Disposable disposable, {
  2. bool sync = false,
  3. bool? emitCancelledException,
})

绑定到 Disposable dispose 时close

Implementation

StreamSink<T> bindDisposable(Disposable disposable,
        {bool sync = false, bool? emitCancelledException}) =>
    bindCancellable(disposable,
        sync: sync, emitCancelledException: emitCancelledException);