function count() for i = 1, 10 do print(i) C.yield() end end s("counter",count)