cancelProcess method

void cancelProcess()

Cancels any ongoing session processing.

Implementation

void cancelProcess() {
  final handle = _handle;
  if (handle == null) {
    throw const LiteRtLmException('Session is already disposed.');
  }
  LiteRtLmNativeRuntime.instance.cancelSession(handle);
}