Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Thakee Nathees |
func test():
var timer = Timer.new()
timer.one_shot = true
timer.wait_time = .1
for i in range(10):
print(i)
timer.start()
yield(timer, "timeout")
in the above code, it only print 0. but i want it to print form 0 to 9 with .1 second intervals. is there any bug in my code? need help!!