Do your actual work - called when middleware is ready. Returns any value - middleware defines contract.
OptionalinitializeTell middleware what you need - called first to determine readiness
OptionalresumeOptionalshutdownGraceful shutdown - called when FynApp is being unloaded. Clean up resources here.
OptionalsuspendPause a mounted FynApp running in the background (e.g. stop timers, unsubscribe). Kept in the registry; resume() restores it.
Standardized interface for FynMesh execution units
FynUnit is the core contract for any executable unit in FynMesh. It can be implemented by plain objects, functions (wrapped by kernel), or class instances.
Example: Plain object
Example: Function (kernel wraps as { execute: fn })
Example: With middleware