mirror of
https://github.com/janet-lang/janet
synced 2024-12-01 04:19:55 +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