Type Definition dart_sys::Dart_MessageNotifyCallback

source ·
pub type Dart_MessageNotifyCallback = Option<unsafe extern "C" fn(destination_isolate: Dart_Isolate)>;
Expand description

A message notification callback.

This callback allows the embedder to provide a custom wakeup mechanism for the delivery of inter-isolate messages. This function is called once per message on an arbitrary thread. It is the responsibility of the embedder to eventually call Dart_HandleMessage once per callback received with the destination isolate set as the current isolate to process the message.