txaio._common¶
Classes¶
Wraps IDelayedCall-implementing objects, implementing only the API |
|
Internal helper. |
Module Contents¶
- class _BatchedCall(timer, index, the_call)[source]¶
Bases:
objectWraps IDelayedCall-implementing objects, implementing only the API which txaio promised in the first place: .cancel
Do not create these yourself; use _BatchedTimer.call_later()
- class _BatchedTimer(bucket_milliseconds, chunk_size, seconds_provider, delayed_call_creator, loop=None)[source]¶
Bases:
txaio.interfaces.IBatchedTimerInternal helper.
Instances of this are returned from
txaio.make_batched_timer()and that is the only way they should be instantiated. You may depend on methods from the interface class only (txaio.IBatchedTimer)NOTE that the times are in milliseconds in this class!
- _notify_bucket(real_time)[source]¶
Internal helper. This ‘does’ the callbacks in a particular bucket.
- Parameters:
real_time – the bucket to do callbacks on