Skip to content

feat: typed listeners for liveness events - #273

Open
gmelodie wants to merge 1 commit into
masterfrom
feat/not-responding-type
Open

gmelodie wants to merge 1 commit into
masterfrom
feat/not-responding-type

Conversation

@gmelodie

Copy link
Copy Markdown
Collaborator

The codegen only emitted typed add_<event>_listener for declared {.ffiEvent.} events, so hosts registered not_responding through the raw <lib>_add_event_listener and decoded CBOR by hand. not_responding, responding, reverse_worker_blocked and reverse_worker_recovered are now builtin events in the C, C++ and Rust generators, sharing the decoder of declared events.

NotRespondingEvent and RespondingEvent carry a reason (heartbeat or queueFull), so a host tells a wedged FFI thread from a sustained queue overflow. The example bindings are regenerated.

@Ivansete-status Ivansete-status left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment in c.nim is the most relevant.

Comment thread ffi/codegen/meta.nim Resolved
Comment thread ffi/codegen/c.nim Resolved
Comment thread ffi/codegen/meta.nim Resolved
Comment thread CHANGELOG.md Resolved
@gmelodie
gmelodie force-pushed the feat/not-responding-type branch from 6dcff7b to bd55382 Compare November 23, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants