pub fn spawn_when_ready<F>(future: F)where F: Future + Send + 'static, F::Output: Send + 'static,
Spawns a future which is executed after the node core is ready