-
Notifications
You must be signed in to change notification settings - Fork 99
Fix async disposal #1817
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
Open
jnm2
wants to merge
16
commits into
draft-v8
Choose a base branch
from
jnm2/fix_async_disposal
base: draft-v8
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix async disposal #1817
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c2b3963
Skip cleanup when GetAsyncEnumerator returned null, rather than throw…
jnm2 c47a1ec
There is a compile error rather than a fallback if DisposeAsync can't…
jnm2 fb3b2f2
Async enumerators can't be ref structs (not only is this blocked by v…
jnm2 0213618
Invert the condition to swap the positions of the last two blocks
jnm2 27a2665
IAsyncDisposable.DisposeAsync *is* called on sealed reference types a…
jnm2 33e9f9b
Null checks on non-nullable things is semanically equivalent to doing…
jnm2 2eee315
Ambiguous DisposeAsync lookup causes fallback to interface, and stati…
jnm2 d38c0b8
Add note that there is no DisposeAsync lookup on nullable underlying …
jnm2 c1eb16e
Typo (DisposeAsync returns ValueTask)
jnm2 20d921c
'await using' prefers an non-interface DisposeAsync call over an inte…
jnm2 66cca43
Null check elision is not required for correctness
jnm2 64bd04b
Add bullets to long list
jnm2 5f1c31c
Add missed comment about not boxing and update the lowering to more c…
jnm2 0e1abef
Deduplicate
jnm2 fbfad33
Make null check elision statement more comprehensive
jnm2 2c9df32
Point await foreach to await using as a lowering
jnm2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Editorial note: This repeats the text in line 1391 (asynchronous foreach). If possible, it'd be nice to de-duplicate it, and provide an xref. If de-dup is readable, at least an xref (both ways) should be added so we keep them in sync in the future.
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.
I tried a dedup! Commit 0e1abef. What do you think?