slide-rs / fibe-rs

Fiberized task queue in Rust
Apache License 2.0
11 stars 0 forks source link

Use Future, and remove none fiber tasks. #26

Closed ghost closed 9 years ago

ghost commented 9 years ago

This is two major changes. Fibers are the default now. And tasks no longer return a handle, but instead return a Future. ResumableTask has been removed since it would have been awkward to use with the Future interface.

These were done as one change since it is easier to support just one type of task. It also will allow us to do future changes to context switch from fiber to fiber without going through the worker thread.