Skip to content

A rust async runtime that supports various of scheduling strategies.

License

Notifications You must be signed in to change notification settings

from-the-basement/executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Executor

A Rust async runtime that bases on async-task and mio. It supports three different task scheduling strategies:

pub fn spawn_local<F>(future: F) -> Task<F::Output>
where
    F: 'static + Future,
    F::Output: 'static;

pub fn spawn_to<F, Fut>(to: usize, f: F) -> Task<Fut::Output>
where
    F: 'static + Send + FnOnce() -> Fut,
    Fut: 'static + Future,
    Fut::Output: 'static + Send;

pub fn spawn<F>(future: F) -> Task<F::Output>
where
    F: 'static + Future + Send,
    F::Output: 'static + Send;

It is helpful to build thread-per-core & work-stealing fusion app

About

A rust async runtime that supports various of scheduling strategies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages