[−][src]Function xrl::spawn
pub fn spawn<B, F>(
executable: &str,
builder: B
) -> Result<(Client, CoreStderr), ClientError> where
F: Frontend + 'static + Send,
B: FrontendBuilder<Frontend = F> + 'static,
Start Xi core, and spawn an RPC client on the current tokio executor.
Panics
This function calls
tokio::spawn
so it will panic if the default executor is not set or if spawning
onto the default executor returns an error.