Skip to content

Conversation

stephencelis
Copy link
Member

This helper makes it easier to reliably test Swift concurrency.

It was originally siloed to the Composable Architecture's test target, but it'd be good to use it beyond that case. Rather than ship it in TCA, we can ship it upstream in the same library that already introduces concurrency helpers for testing.

In the future we may break it out further:

  • swift-main-serial-executor: Could be in its own nano-library as a single exported function.
  • swift-concurrency-helpers (or -support or -test-support or something else): Could be included in a library where we extract out all of this library's concurrency helpers.

@stephencelis stephencelis requested a review from mbrandonw April 13, 2023 16:46
@stephencelis stephencelis changed the title Add SPI-based _withMainSerialExecutor Add SPI-based withMainSerialExecutor Apr 13, 2023
@stephencelis stephencelis merged commit 6158334 into main Apr 13, 2023
@stephencelis stephencelis deleted the with-main-serial-executor branch April 13, 2023 20:24
stephencelis added a commit that referenced this pull request Apr 14, 2023
stephencelis added a commit that referenced this pull request Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants