mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Fix spawn-thread doc about its return
This commit is contained in:
parent
0bb7ca7441
commit
29ea408980
@ -3375,7 +3375,7 @@
|
||||
~(,ev/thread (fiber/new (fn _thread [&] ,;body) :t)))
|
||||
|
||||
(defmacro ev/spawn-thread
|
||||
``Run some code in a new thread. Like `ev/do-thread`, but returns immediately with a fiber.``
|
||||
``Run some code in a new thread. Like `ev/do-thread`, but returns nil immediately.``
|
||||
[& body]
|
||||
~(,ev/thread (fiber/new (fn _thread [&] ,;body) :t) nil :n))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user