lua: coroutine.running/isyieldable
Some checks are pending
Test, Build, and Deploy / test-build-deploy (push) Waiting to run

This commit is contained in:
2026-04-25 01:18:59 +00:00
parent fad44ca097
commit dd47fa8a0b
4 changed files with 50 additions and 52 deletions

View File

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