greenie 0.4.0

Green threads and coroutines in stable Rust
Documentation
1
2
3
4
5
6
7
8
9
10
pub mod shared_work;

use crate::ctx::*;
use crate::ptr::*;

pub trait Algorithm {
    fn awakened(&mut self, _: Ptr<Context>);
    fn pick_next(&mut self) -> Ptr<Context>;
    fn notify(&mut self) {}
}