orengine 0.7.0-alpha.1

Optimized ring engine for Rust. It is a lighter and faster asynchronous library than tokio-rs, async-std, may, and even smol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Returns a [`Task`](crate::runtime::Task) from a [`Context`](std::task::Context).
///
/// # Safety
///
/// If called with [`Context`](std::task::Context) with an `orengine` waker.
#[macro_export]
macro_rules! get_task_from_context {
    ($ctx:expr) => {
        std::ptr::read($ctx.waker().data().cast::<$crate::runtime::task::Task>())
    };
}