Message286709
Is it safe to use the _callback and _args attributes of asyncio.Handle? Is it possible to officially expose them as public API?
My use case:
handle = event_loop.call_later(delay, callback)
# this function can be triggered by some events
def reschedule(handle):
event_loop.call_later(new_delay, handle._callback, *handle._args)
handle.cancel() |
|
Date |
User |
Action |
Args |
2017-02-01 21:51:35 | max | set | recipients:
+ max, gvanrossum, yselivanov |
2017-02-01 21:51:35 | max | set | messageid: <1485985895.46.0.167923746012.issue29415@psf.upfronthosting.co.za> |
2017-02-01 21:51:35 | max | link | issue29415 messages |
2017-02-01 21:51:35 | max | create | |
|