Merged
Conversation
788f55e to
a573fa2
Compare
samuelskelton
approved these changes
Jan 22, 2026
Coleton-Fueled
approved these changes
Jan 22, 2026
harishsaini
approved these changes
Jan 23, 2026
a573fa2 to
2d7e8ab
Compare
2d7e8ab to
a2a16dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goals ⚽
Introduce a new
FueledSwiftConcurrencytarget providing utilities for Swift's async/await concurrency modelBackwards-compatibility:
FueledUtilsCore->FueledCore) 🚨Implementation Details 🚧
Utilsword from all the targets!FueledSwiftConcurrencyas a new library target with dependencies onAsyncAlgorithmsandConcurrencyExtrasCore Utilities Added:
AsyncSemaphore- An async-compatible counting semaphore for controlling concurrent access to shared resources. Supports both regular and cancellation-aware waiting.CurrentValueAsyncSubject- A thread-safe subject that holds a current value and broadcasts changes, similar to Combine's CurrentValueSubject but designed for async/await.BroadcastStream- A thread-safe broadcast stream that emits values to multiple subscribers, with optional replay of the last emitted value.BufferedStream- A buffered async stream that stores emitted values and replays them to new consumers, useful for late subscribers.AsyncCache- An actor-based asynchronous cache for storing key-value pairs with lazy computation and thread-safe access.AsyncSequence Extensions:
takeUntil(_:)- Takes elements from a sequence until a condition is mettimeout(for:clock:tolerance:throwing:alwaysFinishAfterTimeout:)- Applies timeout behavior to async sequences with configurable error handlingAsyncStream Extensions:
timeout(after:)- Creates a stream that completes after a specified durationflatMapOptional(_:)- Transforms elements into optional streams and flattens the resultpromoteOptional()- Wraps each emitted value in an optionalsingle(value:)- Static factory for creating a stream that emits a single valueTesting Details 🔍
All tests have been added ✅