* async job queuing library
@ 2023-04-16 0:44 Lynn Winebarger
0 siblings, 0 replies; only message in thread
From: Lynn Winebarger @ 2023-04-16 0:44 UTC (permalink / raw)
To: emacs-devel
I wrote a library for managing a queue of jobs to run asynchronously
so that at most some fixed number (e.g. number of cores) are running
at a given time. Queued jobs are guaranteed to be started in FIFO
order, although the order they complete in is arbitrary unless that
fixed number is one. Queues can be activated and deactivated - jobs
will not be started while deactivated, but running jobs will not be
killed either.
Basically if you need to generate an arbitrary number of jobs but not
immediately flood your system with corresponding processes, you should
find this library useful. I needed it for arranging the sandboxed
byte-compiling of thousands of files. I could have constructed a
Makefile and used "make -j $(nproc)" but this seems cleaner.
https://github.com/owinebar/emacs-async-job-queue
Lynn
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-16 0:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-16 0:44 async job queuing library Lynn Winebarger
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.