Interrupt an ongoing processing p.
uses Process;
var P: TProcess; begin ... P.Execute; //do something else P.Terminate(0); end.
import "context"
ctx, cancel := context.WithCancel(context.Background()) go p(ctx) somethingElse() cancel()
p.interrupt();
use Coro;
my $coro = async { # do work }; $coro->cancel; # or $coro->safe_cancel
No security, no password. Other people might choose the same nickname.