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
Edits to the Map Sorting proposal #3
Edits to the Map Sorting proposal #3
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.
Thanks Cal! Here are some comments.
Thanks for the good feedback! For each of your points, I've gone back and either updated the proposal or provided additional rationale. |
Thanks for being patient! Do you mind if I squash? |
sgtm, thanks for hashing everything out. It's a pretty good-looking proposal now 😄 |
@AnthonyLatsis can you go back and update the pitch thread? It may also be nice to drop a note in apple/swift-evolution#999 |
…om the third review (apple#1406) * [SE-0304] Replace `TaskGroup.async` with `TaskGroup.addTask`. The use of the adjective `async` for creating new child tasks was too confusing and didn't fit well with the naming guidelines. Instead, use `addTask`, which makes it clear that we are adding a new task into a task group (the result of which is available via `next()`). * [SE-0304] Rename `sleep(_:)` to `sleep(nanoseconds:)`. * [SE-0304] Split out changes due to review #3 * [SE-0304] Rename TaskPriority.default to TaskPriority.medium * [SE-0304] Add (Throwing)?TaskGroup.waitForAll * [SE-0304] Rename `Task.yield()` to `Task.suspend()` * [SE-0304] Make `Task.sleep(nanoseconds:)` throwing on cancellation * Re-schedule review
* Initial draft * Revise proposal and narrow it to @predatesConcurrency * Add examples and describe @predatesConcurrency protocol behavior * Rename `@predatesConcurrency` to `@preconcurrency` * Clarify that using concurrency features enables Sendable checking. * Simplify from 3 "concurrency checking modes" to 2. We only need "minimal" and "strict"; the other differences are accounted for by the language mode (warnings prior to Swift 6, errors thereafter) and the behavior of the `@preconcurrency` attribute. * Remove an extraneous space * Add links to implementation, toolchains, pitch #3 thread * Update proposals/NNNN-support-incremental-migration-to-concurrency-checking.md Co-authored-by: Jon Shier <jon@jonshier.com> * Assign number, kick off review Co-authored-by: Ben Cohen <airspeedswift@users.noreply.github.com> Co-authored-by: Jon Shier <jon@jonshier.com>
I've made some edits to the proposal! Let me know what you think.