zsh-async

Execute tasks asynchronously in Zsh without external dependencies

brewmacoslinux
Try with needOr install directly
Source

About

Perform tasks asynchronously without external tools

Commands

async

Examples

Source the async library in your Zsh configuration$ source $(brew --prefix)/opt/zsh-async/async.zsh
Start an async task and handle completion with a callback$ async_init && async_start_worker myworker && async_job myworker 'sleep 2 && echo done' && async_register_callback myworker callback_function
Stop an async worker and clean up resources$ async_stop_worker myworker && async_unregister_callback myworker