This PR adds a new trait WithExtras to make spawn easier. Now spawning futures with default extras in future pool can be as simple as
pool.spawn(f);
rather than in the past
pool.spawn(TaskCell::new(f, queue::extras()));
.
The old way is not removed as user may want to provide a custom extras.
This PR also make the queue types private. Those types can only be used when constructing pool, it's meaningless and distracting to expose the full type.
This PR adds a new trait
WithExtras
to make spawn easier. Now spawning futures with default extras in future pool can be as simple asrather than in the past
.
The old way is not removed as user may want to provide a custom extras.
This PR also make the queue types private. Those types can only be used when constructing pool, it's meaningless and distracting to expose the full type.