-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fixed issues with AwaitConditionAsync
#6467
fixed issues with AwaitConditionAsync
#6467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed my changes
@@ -123,6 +127,9 @@ public interface IEventFilterApplier | |||
/// <param name="action">The action.</param> | |||
/// <param name="cancellationToken"></param> | |||
Task ExpectAsync(int expectedCount, TimeSpan timeout, Func<Task> action, CancellationToken cancellationToken = default); | |||
|
|||
[Obsolete("Use ExpectAsync<T>(expectedCount, TimeSpan, Func<Task<T>>) instead. This method only exists to support backwards compatibility as of Akka.NET v1.5.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added Obsolete
APIs for __Async
methods that were introduced in the v1.4 TestKit that accepted Action
overloads.
@@ -568,6 +568,14 @@ public async ValueTask<T> ExpectMsgAnyOfAsync<T>(IEnumerable<T> messages, Cancel | |||
|
|||
return (T)o; | |||
} | |||
|
|||
public IReadOnlyCollection<T> ExpectMsgAllOf<T>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to add this for backwards compat.
@@ -606,6 +614,13 @@ await foreach (var item in enumerable) | |||
yield return item; | |||
} | |||
} | |||
|
|||
public IReadOnlyCollection<T> ExpectMsgAllOf<T>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backwards compat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
Fixing API issues reported in #6466
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):