This commit is contained in:
bloeys
2022-10-27 05:36:02 +04:00
parent 69888d4d90
commit d389e76b8d
2 changed files with 138 additions and 39 deletions

View File

@ -9,14 +9,8 @@ import (
"github.com/bloeys/cogo/cogo"
)
func test_cogo(c *cogo.Coroutine[int, int]) (out int) { return 0 }
func test(c *cogo.Coroutine[int, int]) (out int) {
if cogo.HasGen() {
return test_cogo(c)
}
c.Begin()
println("Tick 1")