2 ms·
> async/await style interface for doing non-blocking things like creating and reading output from subprocesses could be pretty nice. That's literally fork/wait
by kazinator 3y ago
> async/await style interface for doing non-blocking things like creating and reading output from subprocesses could be pretty nice.
That's literally fork/wait + pipes.
- chlorion 3y agoThe point is to have a nicer API on top of these primitives, not to introduce new features into Emacs. async/await APIs are just a fancy abstraction over an event loop and callbacks and whatnot. Even just having "promises" would be a nice upgrade. Maybe it's just me but I find the current functions for doing non-blocking stuff very clunky and awkward.