addSystem method

LocalActorSystem addSystem([
  1. ActorSystemConfig? config
])

Creates another actor system in the same simulation, for tests of several nodes. All systems share the scheduler, the clock and the seed, and all are shut down when the test returns.

Implementation

LocalActorSystem addSystem([ActorSystemConfig? config]) {
  final system = _zone.run(() => LocalActorSystem.stepped(
      config ?? ActorSystemConfig(logCollector: const NoOpLogCollector())));
  _systems.add(system);
  return system;
}