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

Method call_at

python/python3/tornado/platform/asyncio.py:222–232  ·  view source on GitHub ↗
(
        self, when: float, callback: Callable, *args: Any, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

220 self.asyncio_loop.stop()
221
222 def call_at(
223 self, when: float, callback: Callable, *args: Any, **kwargs: Any
224 ) -> object:
225 # asyncio.call_at supports *args but not **kwargs, so bind them here.
226 # We do not synchronize self.time and asyncio_loop.time, so
227 # convert from absolute to relative.
228 return self.asyncio_loop.call_later(
229 max(0, when - self.time()),
230 self._run_callback,
231 functools.partial(callback, *args, **kwargs),
232 )
233
234 def remove_timeout(self, timeout: object) -> None:
235 timeout.cancel() # type: ignore

Callers 2

test_call_at_returnMethod · 0.45

Calls 2

call_laterMethod · 0.80
timeMethod · 0.80

Tested by 2

test_call_at_returnMethod · 0.36