Skip to main content

Module runtime

Module runtime 

Source
Expand description

ControllerRuntime — runs N Controller impls on a shared tokio runtime with per-controller intervals.

An embedder instantiates one ControllerRuntime, registers controllers, and calls ControllerRuntime::spawn, which spawns one interval tick loop per controller. Each loop logs how every tick ended.

The daemon does not run controllers this way: it runs each one under a WatchDriver as a child of engenho-runtime’s closed catalog (see ControllerRuntime::spawn).

Structs§

ControllerRuntime
RuntimeConfig