externally-driven-async-rt 0.1.0

Async runtime that is meant to be embedded
Documentation
use core::future::Future;

pub(crate) struct FixedFuture<T>(T);

impl<T> FixedFuture<T> {
    pub(crate) fn new(value: T) -> Self {
        Self(value)
    }
}

impl<T> Future for FixedFuture<T> {
    type Output = ();

    fn poll(
        self: core::pin::Pin<&mut Self>,
        _: &mut core::task::Context<'_>,
    ) -> core::task::Poll<()> {
        core::task::Poll::Ready(())
    }
}