These are chat archives for sirthias/swave

3rd
Oct 2016
Felix Palludan Hargreaves
@hejfelix
Oct 03 2016 08:04
Mathias
@sirthias
Oct 03 2016 09:28
It allows for differing element weights. Essentially it has the same semantics as the akka-stream throttle variant with a cost parameter.
E.g. you might want to throttle based on bytes/second. Then you might say: cost = 1024, per = 1.second, costFn = _.byteCount
Felix Palludan Hargreaves
@hejfelix
Oct 03 2016 09:30
ahh
didn’t see the costFn
now it all makes sense :)
thanks