pushToDiskQueue method

Future<bool> pushToDiskQueue(
  1. int i
)

Implementation

Future<bool> pushToDiskQueue(int i) async {
  if (_diskQueued.contains(i)) return true;
  final b = _data[i]?.binary;
  if (b == null) return false;
  final pd =
      await _io?.commitUint8List(b, _ioSiteName + 'ogmDq' + i.toString());
  if (pd != null && pd) {
    _diskQueued.add(i);
    final rr = await _io?.commitUint64List(
        _diskQueued.toList(), _ioSiteName + 'ogmDq');
    if (rr == null) return false;
    return rr;
  }
  return false;
}