Skip to main content

Module extensions

Module extensions 

Source
Expand description

Drop notifications for the daemon’s opaque extension table. Drop notifications for the daemon’s opaque extension table.

When any node drops an extension key, the daemon sends NodeEvent::ExtensionDropped to every node that stored or loaded it. That event is out-of-band — it is not a dataflow input, and surfacing it to user code would mean every node author had to match on an event they did not ask for. So the event-stream thread consumes it into this process-global queue, and the extension’s own code drains it whenever it next runs.

Process-global rather than per-node because a language binding holds its caches the same way: one process, one set of mappings, regardless of how many DoraNodes live in it.

Functions§

drain_dropped_keys
Take every pending drop notification for namespace, leaving the rest.