Static methods

@:noExprstaticinit(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.

@:noExprstaticsignum(this:Signal):Int

Evaluates to the signal number associated with the handle.

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

Starts the signal handle.

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

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

@:noExprstaticstop(this:Signal):Result<NoData>

Stops the signal handle.