Expose Duration units and add a Nanoseconds function to let us build against 0.6.0
This commit is contained in:
@@ -1688,7 +1688,7 @@ cdef class _Timer:
|
||||
return self
|
||||
|
||||
cpdef after_delay(self, time) except +reraise_kj_exception:
|
||||
return _VoidPromise()._init(self.thisptr.afterDelay(capnp.Duration(time)))
|
||||
return _VoidPromise()._init(self.thisptr.afterDelay(capnp.Nanoseconds(time)))
|
||||
|
||||
def getTimer():
|
||||
return _Timer()._init(helpers.getTimer(C_DEFAULT_EVENT_LOOP_GETTER().thisptr))
|
||||
|
||||
Reference in New Issue
Block a user