initialize method
Spawn the worker isolate. Safe to call multiple times.
Implementation
Future<void> initialize() async {
if (_worker != null) return;
try {
_worker = await SyniRuntimeWorker.spawn();
} catch (e) {
throw SyniRuntimeError('failed to spawn worker: $e');
}
}