Skip to content

Commit

Permalink
Initial Channel implementation
Browse files Browse the repository at this point in the history
This new type isn't integrated in with any of the existing types yet.
This is a step towards what is needed to implement the command pattern,
which I think is the best approach for #192.

I think we might need a Broadcast channel type as well to allow a
channel type where multiple callbacks can be associated rather than a
single, but it will require a Clone bound or extra allocations and the
current implementation doesn't need either.
  • Loading branch information
ecton committed Jan 13, 2025
1 parent 737b65c commit 74abb13
Show file tree
Hide file tree
Showing 4 changed files with 1,173 additions and 387 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ mod names;
#[macro_use]
pub mod styles;
mod app;
mod reactive;
pub use reactive::{channel, value};
pub mod debug;
pub mod fonts;
mod tick;
mod tree;
pub mod value;
pub mod widget;
pub mod widgets;
pub mod window;
Expand Down
Loading

0 comments on commit 74abb13

Please sign in to comment.