Skip to content

Commit 81d1da0

Browse files
committed
zsh-async v1.8.6
1 parent 754e6f9 commit 81d1da0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ This prompt has been tested on numerous Linux and BSD distributions, as well as
5858
<details>
5959
<summary>Here are the latest features and updates.</summary>
6060

61+
- v3.11.2
62+
+ `zsh-async` v1.8.6 is included.
6163
- v3.11.1
6264
+ Bug fix: The background jobs indicator was not updating immediately when a job ended. The prompt now uses the native Zsh `%j` escape to fetch the number of background jobs. Please update your custom prompts accordingly; the examples below have all been updated.
6365
- v3.11.0

lib/async.zsh

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#
44
# zsh-async
55
#
6-
# version: v1.8.5
6+
# version: v1.8.6
77
# author: Mathias Fredriksson
88
# url: https://github.com/mafredri/zsh-async
99
#
1010

11-
typeset -g ASYNC_VERSION=1.8.5
11+
typeset -g ASYNC_VERSION=1.8.6
1212
# Produce debug output from zsh-async when set to 1.
1313
typeset -g ASYNC_DEBUG=${ASYNC_DEBUG:-0}
1414

@@ -325,7 +325,7 @@ async_process_results() {
325325
else
326326
# In case of corrupt data, invoke callback with *async* as job
327327
# name, non-zero exit status and an error message on stderr.
328-
$callback "[async]" 1 "" 0 "$0:$LINENO: error: bad format, got ${#items} items (${(q)items})" $has_next
328+
$callback "[async]" 1 "" 0 "$0:$LINENO: error: bad format, got ${#items} items (${(q)items})" $has_next
329329
fi
330330
done
331331
done
@@ -392,6 +392,9 @@ _async_send_job() {
392392
#
393393
# Start a new asynchronous job on specified worker, assumes the worker is running.
394394
#
395+
# Note if you are using a function for the job, it must have been defined before the worker was
396+
# started or you will get a `command not found` error.
397+
#
395398
# usage:
396399
# async_job <worker_name> <my_function> [<function_params>]
397400
#

0 commit comments

Comments
 (0)