add<T> method

Future<T> add<T>(
  1. Function job
)

Implementation

Future<T> add<T>(Function job) {
  var completer = Completer<T>();
  _queue.add(_Item(completer, job));
  _check();
  return completer.future;
}