Open ghost opened 6 years ago
Your solution is not async, you perform p2 after you finish performing p1
@noalevit Can you explain a little bit more what you mean by not async? I just wait for p1 to finish and then wait for p2 to finish and only then I resolve the „parent“ promise. Isn’t that what’s supposed to be happening?
No, p1 and p2 should happen in parallel, you shoundn't wait for p1 to finish in order to start p2
Ah, I see what you're saying now. I guess my initial point still stands, though: I pass the challenge in this way, even though I shouldn't. That should change.
Here's a solution for the problem 11 that doesn't use a counter and still passes:
I'm glad I passed (took me a long time…), but either the wording of the task should be changed to allow such a thing explicitly, or I should've failed, since I didn't even use a counter.