1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 22:53:16 +00:00

Fix spawn-thread doc about its return

This commit is contained in:
Josef Pospíšil 2021-08-28 15:39:49 +02:00
parent 0bb7ca7441
commit 29ea408980

View File

@ -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))