lua: coroutine.running/isyieldable
Some checks are pending
Test, Build, and Deploy / test-build-deploy (push) Waiting to run
Some checks are pending
Test, Build, and Deploy / test-build-deploy (push) Waiting to run
This commit is contained in:
@@ -694,6 +694,8 @@
|
||||
(dict-set! coroutine "yield" lua-coroutine-yield)
|
||||
(dict-set! coroutine "status" lua-coroutine-status)
|
||||
(dict-set! coroutine "wrap" lua-coroutine-wrap)
|
||||
(dict-set! coroutine "running" (fn () __current-co))
|
||||
(dict-set! coroutine "isyieldable" (fn () (not (= __current-co nil))))
|
||||
|
||||
;; ── string library ────────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user