skeeto / emacs-aio

async/await for Emacs Lisp
The Unlicense
215 stars 12 forks source link

Replace iter-lambda with iter2-lambda #23

Open telotortium opened 3 years ago

telotortium commented 3 years ago

This brings the benefits of the iter2 library to aio-using code, which makes the functions defined using this package's macros more efficient and also allows using save-excursion, save-restriction, and other special forms which iter-lambda doesn't support. On the other hand, it does require an extra dependency.

telotortium commented 3 years ago

If you don't want to take on the extra dependency, I've made a fork that uses iter2-lambda at https://github.com/telotortium/emacs-aio-iter2/tree/rename.