getManagedDelayedFuture<T> method

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

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 Function() callback) =>
    _getDisposableProxy().getManagedDelayedFuture<T>(duration, callback);