Unit ShutdownProcess(bool maintainState) => ActorContext.System(Actor.Id).WithContext( new ActorItem( Actor, (IActorInbox)Inbox, Actor.Flags ), Actor.Parent, ProcessId.NoSender, null, SystemMessage.ShutdownProcess(maintainState), None, () => Actor.ShutdownProcess(maintainState) );
public Unit Shutdown() => TellSystem(SystemMessage.ShutdownProcess(true), Self);
public Unit Kill() => // TODO: Not yet implemented on the JS side ProcessId.Tell(SystemMessage.ShutdownProcess(false), Self);
public Unit Kill() => TellSystem(SystemMessage.ShutdownProcess(false), Self);