Dart_IsolateShutdownCallback typedef

Dart_IsolateShutdownCallback = Pointer<NativeFunction<Void Function(Pointer<Void> isolate_group_data, Pointer<Void> isolate_data)>>

An isolate shutdown callback function.

This callback, provided by the embedder, is called before the vm shuts down an isolate. The isolate being shutdown will be the current isolate. It is safe to run Dart code.

This function should be used to dispose of native resources that are allocated to an isolate in order to avoid leaks.

\param isolate_group_data The same callback data which was passed to the isolate group when it was created. \param isolate_data The same callback data which was passed to the isolate when it was created.

Implementation

typedef Dart_IsolateShutdownCallback = ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void> isolate_group_data, ffi.Pointer<ffi.Void> isolate_data)>>;