completeWhere method
Implementation
void completeWhere((bool, T?) Function(EventxxQueueItem_c<T, T1> item) fun) {
list.removeWhere((item) {
final (doComplete, result) = fun.call(item);
if (doComplete) {
item.result.complete(result);
return true;
}
return false;
});
}