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

Graph building improvements #2243

Merged
merged 1 commit into from
Nov 4, 2018
Merged

Conversation

padmaia
Copy link
Contributor

@padmaia padmaia commented Nov 2, 2018

Graph building improvements base on last PR feedback

Copy link
Member

@devongovett devongovett left a comment

Choose a reason for hiding this comment

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

Looks fine. I'm just a little concerned about having multiple PromiseQueue implementations in parcel, but perhaps we can clean them up later.

this.mainQueue.pause();
this.mainQueue.clear();
this.handleChange(event);
this.graph.invalidateNodeById(filePath);
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to clear the queue here too?

maxConcurrent?: number
};

export default class PromiseQueue {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we also already have a PromiseQueue from parcel 1 in the utils package... Wonder if we can combine them?

"@parcel/eslint-config": "1.10.3"
"@parcel/eslint-config": "1.10.3",
"delay": "^4.1.0",
"random-int": "^1.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

Really do we need two more dependencies? These look like 1-liners to me...

@devongovett devongovett merged commit a466064 into v2-work-so-far Nov 4, 2018
@devongovett devongovett deleted the graph-building-improvements branch November 4, 2018 01:31
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