Opsmaru.Incus.EventListener (opsmaru_incus v0.1.0)

Copy Markdown View Source

Explicit owner-bound event callbacks over one bounded native subscription. Callbacks run sequentially in isolated, monitored workers with a deadline; failure/overflow ends the local listener without cancelling backend work. wait/2 is repeatable and a local wait timeout leaves the listener active. No listener is created by loading the application or constructing a client.

Summary

Functions

active?(listener)

add_handler(listener, types, callback)

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

disconnect(listener)

open(client, opts \\ [])

remove_handler(listener, target)

send_event(listener, event)

wait(listener, timeout \\ 5000)