[][src]Function tarpc_lib::init

pub fn init(spawn: impl Spawn + Clone + 'static)

Initializes the RPC library with a mechanism to spawn futures on the user's runtime. Client stubs and servers both use the initialized spawn.

Init only has an effect the first time it is called. If called previously, successive calls to init are noops.