W3cubDocs

/Pony

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

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()

Private Behaviours

_event_notify

[Source]

Called when the signal is received, or when the AsioEventID can be destroyed.

be _event_notify(
  event: Pointer[AsioEvent val] tag,
  flags: U32 val,
  arg: U32 val)

Parameters

Private Functions

_dispose

[Source]

Dispose of the AsioEventID.

fun ref _dispose()
: None val

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/signals-SignalHandler