tui-realm 3.0.0
3.0.0
Released on 21/05/2025
-
Add
SubClause::AndMany
for easier adding of many clauses that would otherwise be nestedSubClause::And
. -
Add
SubClause::OrMany
for easier adding of many clauses that would otherwise be nestedSubClause::Or
. -
Change the
subclause_
macros to make use of the newSubClause::*Many
variants. -
Change the
subclause_
macros to be able to end with a,
without error. -
Change the
subclause_and_not
to only have oneNot
instead of for every case. -
Remove
+ Sync
bound onPollAsync
trait andU
(Event) bound and all related functions. -
Fix bug that
EventListener::stop
did not actually stop any async tasks. -
Add function
EventListenerCfg::async_tick
to switch the ticker from Sync-Port to Async-Ports. Note thatEventListenerCfg::tick_interval
is 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
crossterm
dependency, even ifcrossterm
feature was disabled. (since 2.2.0) -
Change
PollAsync::poll
to take&mut self
instead of&self
. -
Add async
crossterm
input listenerCrosstermAsyncStream
as 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, );