[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/el-job bcd43d6f2e 122/143: Polish
From: |
ELPA Syncer |
Subject: |
[elpa] externals/el-job bcd43d6f2e 122/143: Polish |
Date: |
Sat, 22 Mar 2025 00:58:31 -0400 (EDT) |
branch: externals/el-job
commit bcd43d6f2e16935b4b80beb862a7ad4664e3cb6c
Author: Martin Edström <meedstrom91@gmail.com>
Commit: Martin Edström <meedstrom91@gmail.com>
Polish
---
el-job.el | 45 ++++++++++++++++++++-------------------------
1 file changed, 20 insertions(+), 25 deletions(-)
diff --git a/el-job.el b/el-job.el
index c1e594b78b..c2bdb9de45 100644
--- a/el-job.el
+++ b/el-job.el
@@ -24,33 +24,32 @@
;;; Commentary:
-;; Imagine you have a function you'd like to run on a long list of inputs. You
-;; could run (mapcar #'FN INPUTS), but that hangs Emacs until done.
+;; Imagine you have a function you'd like to run on a long list of inputs.
+;; You could run (mapcar #'FN INPUTS), but that hangs Emacs until done.
-;; This library gives you the tools to split up the inputs and run the function
-;; in many subprocesses (one per CPU core), then merges their outputs and
-;; passes it back to the current Emacs. In the meantime, current Emacs does
-;; not hang at all.
+;; This library lets you split up the inputs and run the function in many
+;; subprocesses---one per CPU core---then merge their outputs and handle the
+;; result as if it had been returned by that `mapcar'. In the meantime,
+;; current Emacs does not hang at all.
+
+;; You need to know the concept of a callback.
;; Public API:
-;; - `el-job-launch' (also main documentation)
-;; - `el-job-await'
-;; - `el-job-is-busy'
+;; - Function `el-job-launch' (read its docstring)
+;; - Function `el-job-await'
+;; - Function `el-job-is-busy'
+;; - Variable `el-job-major-version'
;; Dev tools:
-;; - `el-job-cycle-debug-level'
-;; - `el-job-show-info'
-;; - `el-job-kill-all'
+;; - Command `el-job-cycle-debug-level'
+;; - Command `el-job-show-info'
+;; - Command `el-job-kill-all'
;;; Code:
(require 'cl-lib)
(require 'el-job-child)
-;; Seems not to work on the CI at .github/workflows/test.yml
-;; (declare-function native-comp-unit-file "data.c")
-;; (declare-function subr-native-comp-unit "data.c")
-
(defvar el-job-major-version 2
"Number incremented for breaking changes.")
@@ -98,16 +97,12 @@ editing."
(not (consp (symbol-function (cdr elem))))
(not (function-alias-p (cdr elem))))
return (cdr elem))))))
- (or (and (native-comp-available-p)
- (fboundp 'native-comp-unit-file)
+ (or (and (fboundp 'native-comp-unit-file)
(fboundp 'subr-native-comp-unit)
- (ignore-errors
- ;; REVIEW: `symbol-file' uses expand-file-name,
- ;; but I'm not convinced it is needed
- (expand-file-name
- (native-comp-unit-file
- (subr-native-comp-unit
- (symbol-function (cdr hit)))))))
+ (native-comp-available-p)
+ (native-comp-unit-file
+ (subr-native-comp-unit
+ (symbol-function (cdr hit)))))
(car hit))))
(defvar el-job--onetime-canary nil)
- [elpa] externals/el-job 08cd1b0fad 099/143: Fix el-job-show-info, (continued)
- [elpa] externals/el-job 08cd1b0fad 099/143: Fix el-job-show-info, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 8e0c296746 100/143: Polish, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job c63827b242 102/143: Release version 2.0.1, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 18b039e51d 106/143: Add linter, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 183ff2e775 107/143: Polish, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 666edc615f 109/143: Release version 2.2.0, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 48c8eb7890 115/143: Lint, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job d501872523 118/143: Lint, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 349761d380 120/143: Add checkdoc to CI, without ispell, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job db9bf6156c 124/143: Release version 2.2.1, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job bcd43d6f2e 122/143: Polish,
ELPA Syncer <=
- [elpa] externals/el-job 802245112d 128/143: Let job that returns nothing still call CALLBACK, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 2e4a808996 125/143: Simplify locate-lib-in-load-history, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 90b2696c03 127/143: Comments, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job c3886ccc7e 130/143: Change a seq- thing to cl-, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 5535c25154 129/143: Release version 2.2.2, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 8e44b6649a 132/143: Polish, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 33ee1713e1 133/143: Release version 2.2.3, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job be8128bdf3 136/143: No package-lint for now, ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 0a70c578b5 143/143: Fix (previous fix was not right), ELPA Syncer, 2025/03/22
- [elpa] externals/el-job 91444518a8 051/143: Polish, ELPA Syncer, 2025/03/22