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

Properly specify async iterable behavior. #177

Merged
merged 1 commit into from
May 5, 2020
Merged

Conversation

mkruisselbrink
Copy link
Contributor

@mkruisselbrink mkruisselbrink commented May 4, 2020

This fixes #158, fixes #127, and fixes #47.


Preview | Diff

@mkruisselbrink mkruisselbrink requested a review from pwnall May 4, 2020 19:11
Copy link
Collaborator

@pwnall pwnall left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you, in retrospect this seems like the right thing to do!

No guarantees are given either way.
</div>

Advisement: In Chrome this is currently implemented as a `directoryHandle.getEntries()` method that can be used in a `for await..of` loop.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would we fix this in Chrome 84? If so, should we call this out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should definitely update this to mention the milestone chrome implements this, when we know what milestone that is. Not sure currently if that is going to 84 branching next week, but I suspect not. So leaving it like this for now.

@mkruisselbrink mkruisselbrink merged commit 446be78 into master May 5, 2020
@mkruisselbrink mkruisselbrink deleted the async-iterables branch May 5, 2020 17:13
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 18, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 23, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 15, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 15, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 16, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 16, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 20, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 20, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 20, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 20, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 21, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Commit-Queue: Marijn Kruisselbrink <[email protected]>
Cr-Commit-Position: refs/heads/master@{#790486}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 21, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Commit-Queue: Marijn Kruisselbrink <[email protected]>
Cr-Commit-Position: refs/heads/master@{#790486}
blueboxd pushed a commit to blueboxd/chromium-legacy that referenced this pull request Jul 21, 2020
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Commit-Queue: Marijn Kruisselbrink <[email protected]>
Cr-Commit-Position: refs/heads/master@{#790486}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jul 24, 2020
…match spec., a=testonly

Automatic update from web-platform-tests
[NativeFS] Update async iterable API to match spec.

Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Commit-Queue: Marijn Kruisselbrink <[email protected]>
Cr-Commit-Position: refs/heads/master@{#790486}

--

wpt-commits: 6dd4527974f68f3c904efb3910899ef641358c2e
wpt-pr: 24219
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Jul 25, 2020
…match spec., a=testonly

Automatic update from web-platform-tests
[NativeFS] Update async iterable API to match spec.

Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Commit-Queue: Marijn Kruisselbrink <[email protected]>
Cr-Commit-Position: refs/heads/master@{#790486}

--

wpt-commits: 6dd4527974f68f3c904efb3910899ef641358c2e
wpt-pr: 24219
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Aug 1, 2020
…match spec., a=testonly

Automatic update from web-platform-tests
[NativeFS] Update async iterable API to match spec.

Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <taptedchromium.org>
Reviewed-by: Yuki Shiino <yukishiinochromium.org>
Commit-Queue: Marijn Kruisselbrink <mekchromium.org>
Cr-Commit-Position: refs/heads/master{#790486}

--

wpt-commits: 6dd4527974f68f3c904efb3910899ef641358c2e
wpt-pr: 24219

UltraBlame original commit: e170aa29bb984ad26a9b782ee493c7def30a1fe6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Aug 1, 2020
…match spec., a=testonly

Automatic update from web-platform-tests
[NativeFS] Update async iterable API to match spec.

Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <taptedchromium.org>
Reviewed-by: Yuki Shiino <yukishiinochromium.org>
Commit-Queue: Marijn Kruisselbrink <mekchromium.org>
Cr-Commit-Position: refs/heads/master{#790486}

--

wpt-commits: 6dd4527974f68f3c904efb3910899ef641358c2e
wpt-pr: 24219

UltraBlame original commit: e170aa29bb984ad26a9b782ee493c7def30a1fe6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Aug 1, 2020
…match spec., a=testonly

Automatic update from web-platform-tests
[NativeFS] Update async iterable API to match spec.

Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <taptedchromium.org>
Reviewed-by: Yuki Shiino <yukishiinochromium.org>
Commit-Queue: Marijn Kruisselbrink <mekchromium.org>
Cr-Commit-Position: refs/heads/master{#790486}

--

wpt-commits: 6dd4527974f68f3c904efb3910899ef641358c2e
wpt-pr: 24219

UltraBlame original commit: e170aa29bb984ad26a9b782ee493c7def30a1fe6
mjfroman pushed a commit to mjfroman/moz-libwebrtc-third-party that referenced this pull request Oct 14, 2022
Matching the changes from WICG/file-system-access#177
Since the bindings layer doesn't support async iterables yet, this CL
does this in a bit of a hacky way, that isn't entirely web-idl
compliant. It is much closer to the desired API than what we had though,
so seems an improvement until bindings properly support async iterables.

Bug: 1011539, 1087157
Change-Id: I2eb0a3b1d6383149b769a9961bf890eaf6956b2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248414
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Commit-Queue: Marijn Kruisselbrink <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#790486}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 886077da870a49b4356c44a46f4ea36111a25cd8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants