importNow method

Future<int> importNow()

Imports the complete spool files. If an import is already running, waits for it and starts the next one: files that appeared during an import do not wait for the next notification. Returns the number of entries imported by this call (or by the import it joined).

Implementation

Future<int> importNow() {
  if (_importing case final importing?) {
    _isImportRequested = true;
    return importing;
  }
  return _importing = _importLoop();
}