FfiCoreBindings constructor

FfiCoreBindings({
  1. required NativeBindings bindings,
  2. void onHandleCreated(
    1. int handleId
    )?,
})

Creates an FfiCoreBindings backed by bindings.

If onHandleCreated is provided, it is called synchronously after a handle is created (in run and start) with the monotonic handle ID. Used by the isolate worker to send the handle ID to the supervisor before entering a potentially blocking FFI call.

Implementation

FfiCoreBindings({
  required NativeBindings bindings,
  this.onHandleCreated,
}) : _bindings = bindings;