apple / apple/swift-async-algorithms

Provide an option for buffering by duration

Open
#318 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
3.7k
Forks
226
Avg merge
10d 3h
Merged PRs (30d)
1

Description

I'm trying to convert legacy RxSwift code where I was using the [`buffer(timeSpan:count:scheduler:)`](https://docs.rxswift.org/protocols/observabletype#/s:7RxSwift14ObservableTypePAAE6buffer8timeSpan5count9schedulerAA0C0CySay7ElementQzGG8Dispatch0K12TimeIntervalO_SiAA09SchedulerD0_ptF) 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?

Contributor guide

Open the contributing guide

Research direction

The issue names no implementation files or tests. Start by locating the existing buffer APIs and their item-count policies, then review related tests and determine the intended duration semantics before proposing coverage for time-based buffering.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.