Skip to main content

maelstrom_init

Function maelstrom_init 

Source
pub fn maelstrom_init() -> MaelstromMeta
Available on crate feature deploy and (crate features maelstrom or maelstrom_runtime) only.
Expand description

Initialize a Maelstrom node by reading the init message from stdin. Returns the node metadata and sends init_ok response. Also spawns a background thread to read stdin and broadcast lines to subscribers.