KKould / executor

A rust async runtime that supports various of scheduling strategies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Rust 100.0%