apple / swift-async-algorithms

Async Algorithms for Swift
Apache License 2.0
2.95k stars 147 forks source link

Provide an option for buffering by duration #318

Open jdanthinne opened 3 months ago

jdanthinne commented 3 months ago

I'm trying to convert legacy RxSwift code where I was using the buffer(timeSpan:count:scheduler:) methods. I've found the .buffer in this package, but unfortunately, the current policies are all based on a number of items, not on a time span. Is it planned?