DisposableFuture<T> constructor

DisposableFuture<T>(
  1. Future<T> _delegateFuture,
  2. DisposeFunction _disposeFn
)

Wraps a future and passes a function that should cancel the operation.

Implementation

DisposableFuture(this._delegateFuture, this._disposeFn);