getManagedDelayedFuture<T> method

  1. @override
Future<T> getManagedDelayedFuture<T>(
  1. Duration duration,
  2. T callback()
)
override

Creates a Future that will complete, with the value returned by callback, after the given amount of time has elapsed.

If the object is disposed before the time has elapsed the future will complete with an ObjectDisposedException error.

Implementation

@override
Future<T> getManagedDelayedFuture<T>(Duration duration, T callback()) =>
    _disposable.getManagedDelayedFuture(duration, callback);