Skip to main content

EventSink

Type Alias EventSink 

Source
pub type EventSink = Box<dyn Fn(NodeId, Event)>;
Expand description

The event sink: enqueue-only — may be invoked re-entrantly from inside any Toolkit method; day-core drains queued events at safe points, each as a fresh batch (§3.3).

Aliased Type§

pub struct EventSink(/* private fields */);
Day API ↩ Guides· daybrite.dev