add<T> abstract method

Future<T> add<T>(
  1. Future<T> closure()
)

Adds a Future-returning closure to the queue.

The closure will be executed when its turn comes up in the queue.

Throws a QueueCancelledException if the queue has been cancelled.

Implementation

Future<T> add<T>(Future<T> Function() closure);