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

Queue a task to resolve from in parallel #107

Closed
wants to merge 4 commits into from
Closed

Conversation

ayuishii
Copy link
Collaborator

@ayuishii ayuishii commented Sep 26, 2023

Addresses: #100


Preview | Diff

@@ -201,9 +201,9 @@ The <dfn method for="StorageBucketManager">delete(|name|)</dfn> method steps are

Copy link
Collaborator

Choose a reason for hiding this comment

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

(I don't know why I can't comment on L200)

Does the reject on L200 also need to be updated? Perhaps also moved out of the "in parallel" part?

Same question for the persist() steps, both 1 and 2 under "in parallel". But I'm not sure. Maybe it should be "queue a storage task to run these steps" instead of "run these steps in parallel".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the catch. Unfortunately looks like the example I was looking at for "in parallel" use is also wrong here which hasn't been helpful :(. Adopted "queue a storage task to run these steps" since looking at other examples, looks like is right to use here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

great. I think the first step (validating bucket name) belongs outside the storage task steps as well. At least, that's what's implemented in Chromium and I don't see a need to go to the storage task queue because name validation is a static operation. WDYT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, missed that part of the comment. Moved name validation above task steps.

@@ -201,9 +201,9 @@ The <dfn method for="StorageBucketManager">delete(|name|)</dfn> method steps are

Copy link
Collaborator

Choose a reason for hiding this comment

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

great. I think the first step (validating bucket name) belongs outside the storage task steps as well. At least, that's what's implemented in Chromium and I don't see a need to go to the storage task queue because name validation is a static operation. WDYT?

@ayuishii
Copy link
Collaborator Author

ayuishii commented Oct 2, 2023

Per in-person discussion, closing.

@ayuishii ayuishii closed this Oct 2, 2023
@ayuishii ayuishii deleted the ayuishii-parallel branch October 2, 2023 20:46
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