Open siddarthkalra opened 8 months ago
This is being worked on for the next major version of Nimble. There's a lot involved in this, though. Especially to keep a decent experience when using with Quick.
@younata that's great to hear. I'll continue to use @preconcurrency import
for now then. Any idea what kind of time horizon, we are looking at for this release?
Any idea what kind of time horizon, we are looking at for this release?
I'd like to get Nimble 14 out before September, with betas running during the summer. No promises though - I'm not going to burn myself out for a hobby project.
Thanks @younata. Totally understand. Just a rough estimate is helpful. Really appreciate your work on this project 🙏
What did you do?
I recently updated my project to use
SWIFT_STRICT_CONCURRENCY=targeted
. After doing so, Nimble is giving the following warnings when usingtoEventually()
:Here's some code to reproduce the problem:
The subject being tested:
The Spec:
Reasoning around
@MainActor
usage: Since we're testing a ViewModel here, we want to isolate everything to run on the main actor.Please feel free to suggest an alternative way but right now, I think the only feasible workarounds available are:
@preconcurrency import Nimble
to silence the warnings@unchecked Sendable
to silence the warningsNeither of the above workarounds are ideal. I'm curious to understand why
SyncExpectation
andMatcher
don't conform toSendable
. Is there a plan to add this conformance soon? If not then what approach would you suggest in this situation?What did you expect to happen?
I expected no warnings.
What actually happened instead?
I got two warnings around
SyncExpectation
andMatcher
being non-sendable types.Environment
List the software versions you're using:
Please also mention which package manager you used and its version. Delete the other package managers in this list: