void add(T value)

Adds an event to this server.

Source

void add(T value) {
  if (_completerQueue.length > 0) {
    var nextEventCompleter = _completerQueue.removeAt(0);
    nextEventCompleter.complete(value);
  } else {
    _queue.add(value);
  }
}