async fn poll<'guard>(&self) -> Result<Option<CrosstermEvent>, Error> {
        let result = task::block_in_place(|| {
            match crossterm::event::poll(Duration::from_millis(0))? {
                true => crossterm::event::read().map(Some),
                false => Ok(None),
            }
        });

        result.map_err(Error::from_crossterm)
    }
/// Polls for a single event from the OS.
Polls for a single event from the OS.
Polls for a single event from the OS .
async fn poll<'guard>(&self) -> Result<Option<CrosstermEvent>, Error> {
        let result = task::block_in_place(|| {
            match crossterm::event::poll(Duration::from_millis(0))? {
                true => crossterm::event::read().map(Some),
                false => Ok(None),
            }
        });
        result.map_err(Error::from_crossterm)
    }
async fn poll < ' guard > ( & self ) -> Result < Option < CrosstermEvent > , Error > { let result = task :: block_in_place ( | | { match crossterm :: event :: poll ( Duration :: from_millis ( 0 ) ) ? { true => crossterm :: event :: read ( ) . map ( Some ) , false => Ok ( None ) , } } ) ; result . map_err ( Error :: from_crossterm ) }
Polls for a single event from the OS.
Polls for a single event from the OS .
&self
&self