tui-realm 3.0.0
3.0.0
Released on 21/05/2025
-
Add
SubClause::AndManyfor easier adding of many clauses that would otherwise be nestedSubClause::And. -
Add
SubClause::OrManyfor easier adding of many clauses that would otherwise be nestedSubClause::Or. -
Change the
subclause_macros to make use of the newSubClause::*Manyvariants. -
Change the
subclause_macros to be able to end with a,without error. -
Change the
subclause_and_notto only have oneNotinstead of for every case. -
Remove
+ Syncbound onPollAsynctrait andU(Event) bound and all related functions. -
Fix bug that
EventListener::stopdid not actually stop any async tasks. -
Add function
EventListenerCfg::async_tickto switch the ticker from Sync-Port to Async-Ports. Note thatEventListenerCfg::tick_intervalis still necessary to enable any ticker. -
Dont start the Sync-Port worker if there are no sync ports (note that
async_tick(false)(the default) also counts as a sync port). -
Fix accidental always inclusion of
crosstermdependency, even ifcrosstermfeature was disabled. (since 2.2.0) -
Change
PollAsync::pollto take&mut selfinstead of&self. -
Add async
crossterminput listenerCrosstermAsyncStreamas a alternative to the syncCrosstermInputListener. -
Issue 94 / PR 94: improve Async Ports to make full use of it being async by running all async ports on the runtime instead of blocking on them like a Sync-port.
let event_listener = EventListenerCfg::default() .crossterm_input_listener(Duration::from_millis(10), 3) .with_handle(tokio::runtime::Handle::current()) .add_async_port( Box::new(AsyncPort::new()), Duration::from_millis(1000), 1, );