cancel method
Cancel the current execution via cancelById (cross-isolate safe).
No-op if the handle ID has not been received yet.
Implementation
Future<void> cancel() async {
final hid = _handleId;
if (hid != null) {
NativeBindingsFfi.ensureInitialized();
NativeBindingsFfi.instanceOrNull?.cancelById(hid);
}
}