
If you'd have asked me when I was 3 what I wanted to be when I grew up I would have said a bologna sandwich
-
Artium
- Los Angeles, CA
-
14:29
(UTC -07:00) - http://k-t.im
Highlights
Block or Report
Block or report tkersey
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
1
# 2023
2## March
3* [Reliably testing code that adopts Swift Concurrency?](https://github.com/pointfreeco/swift-composable-architecture/blob/main/Tests/ComposableArchitectureTests/SerialExecutor.swift#L1-L12)
4> Just wanted to share an update, as we've continued to write more and more tests for code that uses Swift concurrency. Introducing Swift concurrency to a feature continues to be the biggest cause of test flakiness in our experience, but we have managed to reduce flakiness dramatically by cribbing some helpers from [swift-async-algorithms](https://github.com/apple/swift-async-algorithms), in particular, a "[C async support](https://github.com/apple/swift-async-algorithms/tree/main/Sources/_CAsyncSequenceValidationSupport)" module, which exposes [a global hook override](https://github.com/apple/swift-async-algorithms/blob/e6b21d2a6d6cf8c886a97fba489563fd885937d4/Sources/_CAsyncSequenceValidationSupport/_CAsyncSequenceValidationSupport.h#L246) for task enqueuing, which we use to redirect everything to the main, serial executor:
5```swift
-
1
# [fit] Algebra to
2# [fit] **(Co)monads**
3---
4# **$$Cᴮᴬ = (Cᴮ)ᴬ$$**
5---
-
1
// MARK: - Precedence
2precedencegroup ForwardApplication {
3associativity: left
4higherThan: AssignmentPrecedence
5}
626 contributions in the last year
Less
More
Activity overview
Contribution activity
March 2023
Created 7 commits in 1 repository
124
contributions
in private repositories
Mar 1 – Mar 30