menu icon indicating copy to clipboard operation
menu copied to clipboard

Async abortable handlers

Open rmja opened this issue 3 years ago • 1 comments

It would be really useful if the callback registered for a menu item could return a future, and if that future reflected the duration of the command such that the prompt is only shown after the future has completed. It should somehow be possible to abort the running command with e.g. Ctrl+C which should drop the future show the prompt.

rmja avatar Apr 11 '23 22:04 rmja

Async and blocking code isn't really compatible. Feel free to fork the crate as async-menu.

thejpster avatar Apr 30 '23 13:04 thejpster