pub fn maelstrom_client_source(
meta: &MaelstromMeta,
) -> impl Stream<Item = (String, Value)> + UnpinAvailable on crate feature
deploy and (crate features maelstrom or maelstrom_runtime) only.Expand description
Creates a stream of client messages from Maelstrom stdin. Returns tuples of (client_id, message_body) where client_id is the source client and message_body is the JSON value of the message body.
This function is meant to be used with source_stream on a Cluster location.