def w(): tprint('started') i = [0] def a(ap): tprint('a', ap) i[0] = set_timeout(a, 1, 'two') def b(): tprint('b') clear_timeout(i[0]) set_timeout(b, 1.5) set_timeout(a, 0, 'one')
def _async(fn, *lyst, **kwargs): return set_timeout(fn, 0, *lyst, **kwargs)
def a(ap): tprint('a', ap) i[0] = set_timeout(a, 1, 'two')