Skip to main content

cron_handler_method_name

Function cron_handler_method_name 

Source
pub fn cron_handler_method_name(service: &str, index: usize) -> String
Expand description

Synthesise a TypeScript-safe method name for an on cron handler (v0.10a): cron_<service>_<index>, where index is the handler’s position among the service’s cron handlers in declaration order. The same key is computed at each emission site (the handlers method, the compose surface wrapper, and the scheduled dispatcher) by walking handlers in the same order, so it is collision-free and stable without encoding the schedule expression.