Function meio::thread::spawn [−][src]
pub fn spawn<T>(actor: T) -> Result<ScopedRuntime, Error> where
T: Actor + StartedBy<System> + InterruptedBy<System>,
Spawns supervisor actor in a separate runtime and returns a handle
to terminate it on Drop
.
It started with no working threads, because if you used this separate-threaded
meio
instance that means you wanted to spawn a background runtime.
If you use meio
in your main Runtime
than it will use all properties
of the existent runtime. That’s why this spawn
function consider it used
for background tasks only.