Static methods

staticinit(loop:Loop):Result<Signal>

Allocates and initializes a signal handle.

The handle should be cleaned up with eval.luv.Handle.close when no longer needed.

staticsignum(this:Signal):Int

Evaluates to the signal number associated with the handle.

staticstart(this:Signal, sigNum:SigNum, callback:() ‑> Void):Result<NoData>

Starts the signal handle.

staticstartOneshot(this:Signal, sigNum:SigNum, callback:() ‑> Void):Result<NoData>

Like eval.luv.Signal.start, but the handle is stopped after one callback call.

staticstop(this:Signal):Result<NoData>

Stops the signal handle.