Skip to content
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

remove call to waitFor from clock.now and make it async #691

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

gmega
Copy link
Member

@gmega gmega commented Feb 1, 2024

clock.now is the last method of Clock that isn't yet async. The requirement for an async clock.now already exists in test code, but we've been avoiding making that change and have so far instead resorted to using waitFor and maintaining a non-async signature. This is however not recommended, and it breaks the profiler.

This PR makes the required changes so that clock.now becomes async. The alternative is figuring out a different way to implement the test so that the waitFor call is no longer required, and then we can kick the can down the road.

@gmega gmega requested review from emizzle and AuHau February 1, 2024 19:55
Copy link
Member

@markspanbroek markspanbroek left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@gmega gmega merged commit 591be94 into master Feb 5, 2024
8 checks passed
@gmega gmega deleted the fix/async-clock-now branch February 5, 2024 11:36
emizzle added a commit that referenced this pull request Feb 16, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 16, 2024
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.

None yet

2 participants