Documentation
¶
Overview ¶
Package dispatch executes pending continuations: per-session FIFO, supervised adapter runs, results fed back as continuation.* events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func New ¶
func New(st *store.Store, reg adapter.Registry, ingest IngestFunc) *Dispatcher
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run(ctx context.Context)
Run recovers orphaned work, then dispatches until ctx is cancelled.
func (*Dispatcher) Wake ¶
func (d *Dispatcher) Wake()
Wake nudges the dispatcher; safe from any goroutine, never blocks.
type IngestFunc ¶
type IngestFunc func(core.Event) (store.IngestResult, error)
IngestFunc feeds result events back into the engine (chaining).
Click to show internal directories.
Click to hide internal directories.