cancelUniqueWork function

Future<bool> cancelUniqueWork(
  1. String name
)

Cancels all unfinished work in the work chain with the given name.

Note that cancellation is a best-effort policy and work that is already executing may continue to run.

Implementation

Future<bool> cancelUniqueWork(String name) async
  => await apiChannel.invokeMethod('$METHOD_PREFIX#cancelUniqueWork', name);