issues
search
tikv
/
yatp
Yet another thread pool in rust for both callbacks or futures.
Apache License 2.0
135
stars
32
forks
source link
complete task queue traits
#7
Closed
sticnarf
closed
4 years ago
sticnarf
commented
4 years ago
Remove the trait function creating the queue. Instead, use free functions to create the pair of
TaskInjector
and
LocalQueue
s.
Add
LocalQueue
trait.
LocalQueue::pop
returns the instant when the task was pushed to the queue and whether the task is from the current local queue.
TaskInjector
andLocalQueue
s.LocalQueue
trait.LocalQueue::pop
returns the instant when the task was pushed to the queue and whether the task is from the current local queue.