-
-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
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
Add AsyncPredicate - Matchers with AsyncExpressions #1056
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
younata
changed the title
Add AsyncPredicate - Matches with AsyncExpressions
Add AsyncPredicate - Matchers with AsyncExpressions
May 7, 2023
younata
force-pushed
the
add_asyncpredicate
branch
from
May 21, 2023 04:37
0bb8f87
to
4df7dab
Compare
This will not ever replace the standard Predicates, but is meant to be a companion to it.
…erators to any AsyncablePredicate<T> This is a workaround for a compiler bug in swift 5.7.
younata
force-pushed
the
add_asyncpredicate
branch
from
June 18, 2023 19:25
e7334d0
to
8555a8b
Compare
younata
force-pushed
the
add_asyncpredicate
branch
from
July 13, 2023 02:10
bce094d
to
75e542a
Compare
cgrindel-self-hosted-renovate bot
referenced
this pull request
in cgrindel/rules_swift_package_manager
Jul 15, 2023
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [Quick/Nimble](https://togithub.com/Quick/Nimble) | minor | `from: "v12.0.1"` -> `from: "v12.1.0"` | --- ### Release Notes <details> <summary>Quick/Nimble (Quick/Nimble)</summary> ### [`v12.1.0`](https://togithub.com/Quick/Nimble/releases/tag/v12.1.0): - AsyncPredicate [Compare Source](https://togithub.com/Quick/Nimble/compare/v12.0.1...v12.1.0) #### Highlights - You can now create Predicates that run in async contexts. #### What's Changed - Add AsyncPredicate - Matchers with AsyncExpressions by [@​younata](https://togithub.com/younata) in [https://github.com/Quick/Nimble/pull/1056](https://togithub.com/Quick/Nimble/pull/1056) - Remove unused constant by [@​peterringset](https://togithub.com/peterringset) in [https://github.com/Quick/Nimble/pull/1064](https://togithub.com/Quick/Nimble/pull/1064) #### New Contributors - [@​peterringset](https://togithub.com/peterringset) made their first contribution in [https://github.com/Quick/Nimble/pull/1064](https://togithub.com/Quick/Nimble/pull/1064) **Full Changelog**: Quick/Nimble@v12.0.1...v12.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44LjkiLCJ1cGRhdGVkSW5WZXIiOiIzNi44LjkiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
Draft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
AsyncPredicate
, a companion toPredicate
which works withAsyncExpression
for creating matchers that can utilize async/await.AsyncPredicate
does not replace or subsumePredicate
, this is an entirely additive change.containsElementSatisfying
that takes in an async function. Does not replace the existingcontainsElementSatisfying
.satisfyAnyOf
andsatisfyAllOf
that take in bothAsyncPredicate
andPredicate
. Again, these do not replace the existingsatisfyAnyOf
/satisfyAllOf
matchers, but instead complements them so that you can compose matchers that use bothAsyncPredicate
and traditionalPredicate
.allPass
.Checklist - While not every PR needs it, new features should consider this list: