Closed yoshuawuyts closed 4 years ago
This removes the spawn function from the top-level exports
Instead task::spawn should be used. If this were part of std, spawn wouldn't be a top-level method, so we should keep it in task instead.
task::spawn
spawn
task
Looks good to me! One thing I would note is that runtime::task::spawn is little verbose. Perhaps that'd look better if runtime::task was imported first and then we spawned tasks with task::spawn?
runtime::task::spawn
runtime::task
This removes the spawn function from the top-level exports
Instead
task::spawn
should be used. If this were part of std,spawn
wouldn't be a top-level method, so we should keep it intask
instead.