Setting working flag in workAsync/workSync instead of pushAsync/pushSync #1

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@domtop
domtop commented Jul 29, 2013

With the following steps:

  • pushAsync two tasks A and B that lasts 1 second
  • 1500ms after, pushAsync another one task C - this task would start immediately because the working flag was not set to true when task B started
@domtop domtop Setting working flag in workAsync/workSync instead of pushAsync/pushSync
With the following steps:
- pushAsync two tasks A and B that lasts 1 second
- 1500ms after, pushAsync another one task C - this task would start immediately because the working flag was not set to true when task B started
deec137
Owner

I incorporated your rightfully noted change into the latest version. I also introduced .series, and also simplified the pushAsync so that it feels more natural when people don't want to necessarily use governor work fucntions.

@rook2pawn rook2pawn closed this Apr 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment