jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
832 stars 68 forks source link

Async let improvements #69

Closed thierryvolpiatto closed 7 years ago

thierryvolpiatto commented 7 years ago

Allow passing non functions value to async-let bindings and also passing more than one form.

thierryvolpiatto commented 7 years ago

Also allow:

(async-let ((x "hello")
            (y "world")
            z)
  (setq z (+ 1 2))
  (message "%s %s %d" x y z))
thierryvolpiatto commented 7 years ago

Note that in last example the computation of z is done synchronously (in the callback). That's mean that if computation of z is heavy it will block emacs.

jwiegley commented 7 years ago

@thierryvolpiatto Awesome!!

thierryvolpiatto commented 7 years ago

John Wiegley notifications@github.com writes:

Merged #69.

Merged too on elpa.

Thierry