-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add additional tests for DispatchAsync #2
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
base: feat/swift-wasm-support
Are you sure you want to change the base?
Conversation
@@ -70,7 +70,7 @@ extension DispatchAsync { | |||
} | |||
} | |||
|
|||
func wait() async { |
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.
Make sure to hide whitespace changes before reviewing this. It will be a lot easier.
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
// TODO: SM: Rename this file to AsyncSemaphoreTests (coming in next PR that adds tests) |
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.
Note, this file was renamed to AsyncSemaphoreTests
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.
Looks good to me! More tests! 🎉
[Human-Directed AI Assistance]
…/tests/dispatch_pingpong.c. [Human-Directed AI Assistance]
# Conflicts: # Tests/DispatchAsyncTests/DispatchGroupTests.swift # Conflicts: # Tests/DispatchAsyncTests/DispatchGroupTests.swift
…And other minor improvements to tests.
ae42424
to
a872ad4
Compare
Quick summary
This PR adds a focused round of new and ported tests to harden the experimental
DispatchAsync
package:AsyncSemaphore
andDispatchTimeInterval
cover edge-cases that weren’t exercised before.dispatch_pingpong
anddispatch_group
) rewritten in Swift to stress-test queue/group behaviour under concurrency.DispatchGroup.wait
publicly visible so the new tests compile.PR Dependencies
This branch is stacked on PR #1 – “Initial implementation of many GCD API’s using Swift Concurrency.”
PR #1 will need merged before this PR.