#music #async-callback #music-player #tui #asynchronous-events #youtui

async-callback-manager

Library that provides an interface to create and manage asynchronous callbacks in Rust. Dependency of youtui music player.

12 releases

Uses new Rust 2024

0.1.0 Jan 13, 2026
0.0.11 Dec 22, 2025
0.0.9 Nov 20, 2025
0.0.7 Jun 2, 2025
0.0.2 Nov 18, 2024

#1433 in Audio

Download history 36/week @ 2025-12-02 108/week @ 2025-12-09 67/week @ 2025-12-16 52/week @ 2025-12-23 39/week @ 2025-12-30 54/week @ 2026-01-06 85/week @ 2026-01-13 54/week @ 2026-01-20 56/week @ 2026-01-27 70/week @ 2026-02-03 55/week @ 2026-02-10 40/week @ 2026-02-17 55/week @ 2026-02-24 58/week @ 2026-03-03 34/week @ 2026-03-10 20/week @ 2026-03-17

171 downloads per month
Used in youtui

MIT license

64KB
1.5K SLoC

About

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.

Basic usage

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.

Examples

A runnable example using ratatui is provided in the examples directory. cargo r --example=ratatui_example.

Dependencies

~7–11MB
~108K SLoC