MCPcopy Create free account
hub / github.com/EasyIME/PIME / call_at

Method call_at

python/python3/tornado/ioloop.py:601–617  ·  view source on GitHub ↗

Runs the ``callback`` at the absolute time designated by ``when``. ``when`` must be a number using the same reference point as `IOLoop.time`. Returns an opaque handle that may be passed to `remove_timeout` to cancel. Note that unlike the `asyncio` method of the sam

(
        self, when: float, callback: Callable, *args: Any, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

599 return self.call_at(self.time() + delay, callback, *args, **kwargs)
600
601 def call_at(
602 self, when: float, callback: Callable, *args: Any, **kwargs: Any
603 ) -> object:
604 """Runs the ``callback`` at the absolute time designated by ``when``.
605
606 ``when`` must be a number using the same reference point as
607 `IOLoop.time`.
608
609 Returns an opaque handle that may be passed to `remove_timeout`
610 to cancel. Note that unlike the `asyncio` method of the same
611 name, the returned object does not have a ``cancel()`` method.
612
613 See `add_timeout` for comments on thread-safety and subclassing.
614
615 .. versionadded:: 4.0
616 """
617 return self.add_timeout(when, callback, *args, **kwargs)
618
619 def remove_timeout(self, timeout: object) -> None:
620 """Cancels a pending timeout.

Callers 2

add_timeoutMethod · 0.95
call_laterMethod · 0.95

Calls 1

add_timeoutMethod · 0.95

Tested by

no test coverage detected