Skip to content

AsioEvent

[Source]

Functions for asynchronous event notification.

primitive val AsioEvent

Constructors

create

[Source]

new val create()
: AsioEvent val^

Returns


Public Functions

none

[Source]

An empty event.

fun box none()
: AsioEventID

Returns


readable

[Source]

Returns true if the flags contain the readable flag.

fun box readable(
  flags: U32 val)
: Bool val

Parameters

  • flags: U32 val

Returns


writeable

[Source]

Returns true if the flags contain the writeable flag.

fun box writeable(
  flags: U32 val)
: Bool val

Parameters

  • flags: U32 val

Returns


disposable

[Source]

Returns true if the event should be disposed of.

fun box disposable(
  flags: U32 val)
: Bool val

Parameters

  • flags: U32 val

Returns


errored

[Source]

Returns true if the flags contain the error flag, indicating a subscription failure. The event is compromised and the actor should tear down.

fun box errored(
  flags: U32 val)
: Bool val

Parameters

  • flags: U32 val

Returns


oneshotable

[Source]

Returns true if the flags contain the oneshot flag.

fun box oneshotable(
  flags: U32 val)
: Bool val

Parameters

  • flags: U32 val

Returns


dispose

[Source]

fun box dispose()
: U32 val

Returns


read

[Source]

fun box read()
: U32 val

Returns


write

[Source]

fun box write()
: U32 val

Returns


timer

[Source]

fun box timer()
: U32 val

Returns


signal

[Source]

fun box signal()
: U32 val

Returns


proc

[Source]

Subscribe for a process-exit event, which fires when the child exits. On kqueue platforms the event's fd is the child's pid; on Windows its nsec carries the child's process handle and its fd is unused. Must match ASIO_PROC in the runtime's asio.h.

fun box proc()
: U32 val

Returns


pipe

[Source]

Mark an event as a pipe that the Windows readiness backend peeks. A Windows pipe has no readiness signal, so the backend peeks it and delivers ASIO_READ/ASIO_WRITE. Combine with one direction flag (read or write). Must match ASIO_PIPE in the runtime's asio.h.

fun box pipe()
: U32 val

Returns


read_write

[Source]

fun box read_write()
: U32 val

Returns


oneshot

[Source]

fun box oneshot()
: U32 val

Returns


read_write_oneshot

[Source]

fun box read_write_oneshot()
: U32 val

Returns


eq

[Source]

fun box eq(
  that: AsioEvent val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: AsioEvent val)
: Bool val

Parameters

Returns