PollInput implementation
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user