mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
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:
commit
36be240623
@ -1,6 +1,6 @@
|
|||||||
(defn dowork [name n]
|
(defn dowork [name n]
|
||||||
(print name " starting work...")
|
(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!"))
|
(print name " finished work!"))
|
||||||
|
|
||||||
# Will be done in parallel
|
# Will be done in parallel
|
||||||
|
Loading…
Reference in New Issue
Block a user