cancelAllFor method

Future<void> cancelAllFor(
  1. String miniProgramId
)

Implementation

Future<void> cancelAllFor(String miniProgramId) async {
  final ids = _owners.entries
      .where((entry) => entry.value == miniProgramId)
      .map((entry) => entry.key)
      .toList(growable: false);
  await Future.wait(ids.map(_cancelBestEffort));
}