cobald.decorator.buffer module

class cobald.decorator.buffer.Buffer(*args, **kwargs)[source]

Bases: PoolDecorator

A timed buffer for changes to a pool

Parameters
  • target – the pool to which changes are applied

  • window – interval after which changes are applied

Any changes made to demand are stored internally. Every window seconds, the final demand is applied to target.

demand = 0.0
async run()[source]

Service entry point