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')
示例#2
0
def _async(fn, *lyst, **kwargs):
    return set_timeout(fn, 0, *lyst, **kwargs)
示例#3
0
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')