Skip to content

Add support for custom signal handler - #948

Open
feois wants to merge 7 commits into
RustAudio:masterfrom
feois:master
Open

feois wants to merge 7 commits into
RustAudio:masterfrom
feois:master

Conversation

@feois

@feois feois commented Nov 26, 2026 •

Copy link
Copy Markdown

Add a tokio feature that adds a new function append_with_signal_tokio that returns tokio Receiver that can be awaited.
Add SourcesQueueInput::append_with_signal_custom that allows user to provide Box<dyn FnOnce() + Send> as a callback.

@feois

feois commented Nov 26, 2026 •

Copy link
Copy Markdown
Author

actually i wonder if returning receiver is the right choice, passing sender as argument might be better, but it'll be inconsistent with current api

@feois

feois commented Nov 26, 2026 •

Copy link
Copy Markdown
Author

Actually I just completely understand what's wrong, it should be accepting a Box<dyn FnOnce()> and it will be usable in all cases. The original API design is just flawed

wilson added 4 commits November 27, 2026 01:33
This reverts commit f95e6d7.
This reverts commit d3e4d4e.
This reverts commit a22f751.
@feois feois changed the title Add tokio support for signals Add support for custom signal handler Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant