PollInput implementation

This commit is contained in:
Zachary Sunforge
2023-06-23 16:55:33 -07:00
parent 07cb49bee5
commit 2a0013481c
6 changed files with 97 additions and 24 deletions

View File

@ -1,6 +1,7 @@
#![feature(async_fn_in_trait, impl_trait_projections)]
use node_poll_variants::PollVariants;
use physical_node::CriticalError;
use physical_node::transducer::input::Poll;
#[derive(PollVariants)]
@ -21,8 +22,8 @@ where
{
type Value = SecondT;
async fn poll(&self) -> Self::Value {
self.second
async fn poll(&self) -> Result<Self::Value, CriticalError> {
Ok(self.second)
}
}