getManagedDelayedFuture<T> abstract method

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

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

Future<T> getManagedDelayedFuture<T>(Duration duration, T callback());