Skip to content

SignalHandler

[Source]

Listen for a specific signal. If the wait parameter is true, the program will not terminate until the SignalHandler's dispose method is called, or if the SignalNotify returns false, after handling the signal as this also disposes the SignalHandler and unsubscribes it.

actor tag SignalHandler is
  AsioEventNotify tag

Implements


Constructors

create

[Source]

Create a signal handler.

new tag create(
  notify: SignalNotify iso,
  sig: U32 val,
  wait: Bool val = false)
: SignalHandler tag^

Parameters

Returns


Public Behaviours

raise

[Source]

Raise the signal.

be raise()

dispose

[Source]

Dispose of the signal handler.

be dispose()