We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created AsynchronousSpec according to example in #1217
AsynchronousSpec
Test to compile and run
Test fails to compile with Mutation of captured var 'ocean' in concurrently-executing code
Mutation of captured var 'ocean' in concurrently-executing code
List the software versions you're using:
Xcode Default
Please also mention which package manager you used and its version. Delete the other package managers in this list:
pod --version
carthage version
swift build --version
import Quick import Nimble class AsynchronousSpec: AsyncSpec { override class func spec() { it("runs the test in an async context") { var ocean: [String] = [] DispatchQueue.main.async { ocean.append("dolphins") ocean.append("whales") } await expect(ocean).toEventually(contain("dolphins", "whales")) } } }
The text was updated successfully, but these errors were encountered:
Yep. That's correct. The example will have to be updated.
Edit: The example linked (and the release page) have now been updated with code that compiles.
Sorry, something went wrong.
No branches or pull requests
What did you do?
Created
AsynchronousSpec
according to example in #1217What did you expect to happen?
Test to compile and run
What actually happened instead?
Test fails to compile with
Mutation of captured var 'ocean' in concurrently-executing code
Environment
List the software versions you're using:
Xcode Default
.)Please also mention which package manager you used and its version. Delete the
other package managers in this list:
pod --version
in Terminal)carthage version
in Terminal)swift build --version
in Terminal)Project that demonstrates the issue
The text was updated successfully, but these errors were encountered: