release method

Future<void> release()

Implementation

Future<void> release() async {
  // Release all isolates
  await killAllIsolates();

  // Release the native session
  OrtEnv.instance.ortApiPtr.ref.ReleaseSession
      .asFunction<void Function(ffi.Pointer<bg.OrtSession>)>()(_ptr);
}