AbstractEventLoop.call_later(delay, callback, *args)
Arrange for the callback to be called after the given delay seconds (either an int or float).
An instance of asyncio.Handle
is returned, which can be used to cancel the callback.
callback will be called exactly once per call to call_later()
. If two callbacks are scheduled for exactly the same time, it is undefined which will be called first.
The optional positional args will be passed to the callback when it is called. If you want the callback to be called with some named arguments, use a closure or functools.partial()
.
Use functools.partial to pass keywords to the callback.
Please login to continue.