blpop method

Future<List<String?>> blpop(
  1. List<String> keys,
  2. int timeout
)

Implementation

Future<List<String?>> blpop(List<String> keys, int timeout) async {
  final result = _getArray(await _execCmd(['BLPOP', ...keys, timeout]));
  if (result != null) {
    return result.map((e) => _getBulkString(e)).toList(growable: false);
  }
  return [];
}