def tick(self, now: float) -> float: """ Process any pending transport timer events (like heartbeat generation). This method should be called after all pending input has been processed by the transport and before generating output. It returns the deadline for the next pending timer event, if any are present. .. note:: This function does nothing until the first data is read from or written to the transport. :param now: seconds since epoch. :return: If non-zero, then the monotonic expiration time of the next pending timer event for the transport. The caller must invoke :meth:`tick` again at least once at or before this deadline occurs. If ``0.0``, then there are no pending events. """ return millis2secs(pn_transport_tick(self._impl, secs2millis(now)))
def tick(self, now): """Process any timed events (like heartbeat generation). now = seconds since epoch (float). """ return millis2secs(pn_transport_tick(self._impl, secs2millis(now)))