InterpreterCreator typedef

InterpreterCreator = Future<Interpreter> Function(InterpreterOptions options, Delegate? delegate)

Factory function to create and configure an Interpreter for one pool slot.

Receives InterpreterOptions (with delegate pre-embedded) and the raw Delegate (nullable, for informational use). The pool handles delegate cleanup and IsolateInterpreter creation internally.

Implementation

typedef InterpreterCreator =
    Future<Interpreter> Function(
      InterpreterOptions options,
      Delegate? delegate,
    );