Merge pull request #895 from pepe/add-path-to-async-execute-example

Add search on PATH for async execute example
This commit is contained in:
Calvin Rose 2021-12-09 14:08:53 -06:00 committed by GitHub
commit 36be240623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
(defn dowork [name n]
(print name " starting work...")
(os/execute [(dyn :executable) "-e" (string "(os/sleep " n ")")])
(os/execute [(dyn :executable) "-e" (string "(os/sleep " n ")")] :p)
(print name " finished work!"))
# Will be done in parallel