Closed catloversg closed 1 week ago
I'm going to bring up one potential quibble, before this gets locked in stone: Should it reject if the current work is not grafting work?
I can see arguments both ways - on one hand, many players won't be coding to handle promise rejections, but on the other hand, maybe that's a good thing, since if a different type of work is happening, that should be an exceptional case. (I would leave "no work" as an instant resolve.)
Should it reject if the current work is not grafting work?
It makes sense. I considered that behavior at first, but scraped that idea because many people don't like exception/promise rejection.
This PR implements d0sboots's suggestion in #1027.
Closes #1012.