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

Improve waiting methods #26

Merged
merged 6 commits into from
Jul 30, 2021
Merged

Improve waiting methods #26

merged 6 commits into from
Jul 30, 2021

Conversation

gabriellanata
Copy link
Contributor

There were some problems using the runloop for waiting because it could block the events from being processed too. I looked into alternatives to drain the runloop, but when I tested with using XCTestWaiter everything worked great with much less complexity.

Wrapped it in a new Waiter object so that we can easily replace the internal implementation in the future.

dduan
dduan previously approved these changes Jul 29, 2021
@gabriellanata gabriellanata requested a review from dduan July 29, 2021 21:58
@gabriellanata gabriellanata merged commit 0a07dd6 into main Jul 30, 2021
@gabriellanata gabriellanata deleted the improve-waiting-methods branch July 30, 2021 01:27
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.

2 participants