Esempio n. 1
0
def TimeoutAbsMono(timeout_cb, mtime, *cb_params):
    if not isinstance(mtime, MonoTime):
        raise TypeError('mtime is not MonoTime')
    el = ED2.regTimer(timeout_cb, mtime, None, True, *cb_params)
    el.go()
    return el
Esempio n. 2
0
def TimeoutInact(timeout_cb, ival, nticks=1, *cb_params):
    return ED2.regTimer(timeout_cb, ival, nticks, False, *cb_params)
Esempio n. 3
0
def Timeout(timeout_cb, ival, nticks=1, *cb_params):
    el = ED2.regTimer(timeout_cb, ival, nticks, False, *cb_params)
    el.go()
    return el
Esempio n. 4
0
def TimeoutAbsMono(timeout_cb, mtime, *cb_params):
    if not isinstance(mtime, MonoTime):
        raise TypeError('mtime is not MonoTime')
    el = ED2.regTimer(timeout_cb, mtime, None, True, *cb_params)
    el.go()
    return el
Esempio n. 5
0
def TimeoutInact(timeout_cb, ival, nticks = 1, *cb_params):
    return ED2.regTimer(timeout_cb, ival, nticks, False, *cb_params)
Esempio n. 6
0
def Timeout(timeout_cb, ival, nticks = 1, *cb_params):
    el = ED2.regTimer(timeout_cb, ival, nticks, False, *cb_params)
    el.go()
    return el