9 lines
240 B
GDScript3
Raw Permalink Normal View History

2025-01-11 00:25:52 +01:00
extends __GDRx_Test__
const TEST_UNIT_NAME = "SCHEDULER"
func test_nts_priodic_timer() -> bool:
var t = GDRx.start_periodic_timer(0.1, NewThreadScheduler.singleton()).take(2)
var result = [0, 1, Comp()]
return await compare(t, result)