Beispiel #1
0
 /// <summary>
 /// Kill a specified running process.
 /// Forces the specified process to shutdown.  The kill message
 /// jumps ahead of any messages already in the process's queue.
 /// </summary>
 public static Unit kill(ProcessId pid) =>
 ActorContext.Kill(pid);
Beispiel #2
0
 /// <summary>
 /// Shutdown a specified running process.
 /// Forces the specified Process to shutdown.  The shutdown message jumps
 /// ahead of any messages already in the process's queue.  Any Process
 /// that has a persistent inbox or state will have its state maintained
 /// for future spawns.  If you wish for the data to be dropped then call
 /// Process.kill(pid)
 /// </summary>
 public static Unit shutdown(ProcessId pid) =>
 ActorContext.Kill(pid, true);