Skip to content

Add ConcurrencyExtras package#4

Open
erkekin wants to merge 1 commit into
Alex-Ozun:mainfrom
erkekin:fix/add-concurrency-extras-package
Open

Add ConcurrencyExtras package#4
erkekin wants to merge 1 commit into
Alex-Ozun:mainfrom
erkekin:fix/add-concurrency-extras-package

Conversation

@erkekin

@erkekin erkekin commented Mar 7, 2026

Copy link
Copy Markdown

This PR adds the ConcurrencyExtras package to resolve test compilation issues.

Copilot AI review requested due to automatic review settings March 7, 2026 17:39

@erkekin erkekin left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @Alex-Ozun, I wanted to run tests but had compilation error. looks like you didn't include pointfree's lib.

switch action {
case .enqueue:
await task.enqueue()
task.enqueue()

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an unrelated warning fix

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Swift package configuration and tests to use Point-Free’s swift-concurrency-extras (specifically LockIsolated) and fixes a Swift concurrency compilation issue in EffectTest.expectTask.

Changes:

  • Add swift-concurrency-extras as a package dependency and link ConcurrencyExtras to the EffectTests target.
  • Update RunInParallelUntilBothCompleteOrEitherThrowsTests to use ConcurrencyExtras.LockIsolated.
  • Remove an invalid await on the synchronous TaskEffect.enqueue() call in EffectTest.expectTask.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
Tests/EffectTests/RunInParallelUntilBothCompleteOrEitherThrowsTests.swift Switches state isolation to ConcurrencyExtras.LockIsolated to resolve test compilation issues.
Sources/Effect/Effect.swift Removes await from task.enqueue() (method is synchronous) to fix compilation under strict async/await rules.
Package.swift Adds swift-concurrency-extras dependency and wires ConcurrencyExtras into EffectTests.
Package.resolved Locks the new dependency (swift-concurrency-extras) in the resolved package set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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