Skip to main content

serve_calls

Function serve_calls 

pub async fn serve_calls(remote: Remote, engine: Engine)
Expand description

Serves calls other machines send through the server, until the worker’s connection closes. Spawn it next to the engine:

let (cfg, remote) = fusee_server::remote_worker("127.0.0.1:7600")?;
let engine = fusee::Engine::open(cfg).await.map_err(std::io::Error::other)?;
tokio::spawn(fusee_server::serve_calls(remote, engine.clone()));