Repository navigation
v0.2.0 - more fun!
New Modules
- Box: Reference wrappers for values, including thread-safe
MutexBoxusing Swift 6'sSynchronization.Mutex - AsyncPlus: Concurrency utilities including
SaferContinuationfor leak-safe continuations andScaledClockfor time-scaled testing
StdPlus Additions
New Functions:
- Free functions:
with(),configure(),catchAndReturn()(with async variants)
New Sequence Extensions:
onlyproperty for extracting a single element from a sequence
Optional Enhancements:
- Made
UnwrapErrorgeneric for better type precision - Added
takeOrThrow()(mutating) to consume optional values - Added async
map()andflatMap()for async transformations
Numeric Extensions:
clamped()to constrain values to a rangenonZero()to filter out zero valuespositive()to filter for positive values only
StatefulAsyncSequence:
- Added
Sendableinitializer variant for sendable state
Full Changelog: v0.1.0...v0.2.0