Sai Karthik
Balancing the braces ...Emacs: Trying to upgrade packages asynchronously
As i started configuring emacs from scratch, I have chosen to use the default package manager (use-package)
When i tried to refresh & upgrade packages, I noticed that it blocks the emacs UI until the operation is finished.
I wanted to move this work to the background without blocking the UI. When browsing melpa, I found a package named async which provides a couple of functions to do write async code.
|
|
The above code snippet does a decent job, But i have to learn how to handle errors
in async way, As the (package-refresh-contents)
throws an error if failed to fetch packages.
Thanks to the user (save-lisp-and-die) in the xmpp lisp room, who helped me with understanding the async package.