| Crates.io | async-callback-manager |
| lib.rs | async-callback-manager |
| version | 0.0.7 |
| created_at | 2024-11-18 11:10:14.486243+00 |
| updated_at | 2025-06-02 03:38:01.17031+00 |
| description | Library that provides an interface to create and manage asynchronous callbacks in Rust. Dependency of `youtui` music player. |
| homepage | https://github.com/nick42d/youtui |
| repository | https://github.com/nick42d/youtui |
| max_upload_size | |
| id | 1452103 |
| size | 110,440 |
async-callback-manager is a crate designed to help you manage an asynchronous callback pattern when developing Rust UI.
This is initially designed as a dependency of the youtui music player, however could have wider applicability.
The AsyncCallbackManager should live with your event loop, and can produce a stream of events corresponding to a component callback or an asynchronous task.
From the AsyncCallbackManager you can create AsyncCallbackSenders that allow you to log asynchronous callbacks and receive their replies as a list of state mutations to be applied.
A runnable example using ratatui is provided in the examples directory. cargo r --example=ratatui_example.