Something went wrong. Try again.
A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
Something went wrong. Try again.
398 B · 26 lines
Rust
at main
123456789101112131415161718192021222324252627use super::backend;
use web_time::Instant;
#[derive(Debug)]pub enum State { Init, WaitUntil { _timeout: backend::Schedule, start: Instant, end: Instant, }, Wait { start: Instant, }, Poll { _request: backend::Schedule, }, Exit,}
impl State { pub fn exiting(&self) -> bool { matches!(self, State::Exit) }}