/// <summary> /// Forces a running process to restart. This will reset its state and drop /// any subscribers, or any of its subscriptions. /// </summary> public static Unit restart(ProcessId pid) => ActorContext.TellSystem(pid, SystemMessage.Restart);
/// <summary> /// Un-pauses a paused process. Messages that have built-up in the inbox whilst /// the Process was paused will be Processed immediately. /// </summary> /// <param name="pid">Process to un-pause</param> public static Unit unpause(ProcessId pid) => ActorContext.TellSystem(pid, SystemMessage.Unpause);
/// <summary> /// Send a message to a process /// </summary> /// <param name="pid">Process ID to send to</param> /// <param name="message">Message to send</param> /// <param name="sender">Optional sender override. The sender is handled automatically if you do not provide one.</param> internal static Unit tellSystem <T>(ProcessId pid, T message, ProcessId sender = default(ProcessId)) => ActorContext.TellSystem(pid, message as SystemMessage);