init method

Future<void> init(
  1. ZenStorage? storage
)

Initialize the queue and restore from storage if available

Implementation

Future<void> init(ZenStorage? storage) async {
  _storage = storage;
  if (_storage != null) {
    await _restore();
  }
}