Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-corumdigital/2631a350803027471698f60d61b464bc to your computer and use it in GitHub Desktop.
Save eric-corumdigital/2631a350803027471698f60d61b464bc to your computer and use it in GitHub Desktop.
if (interrupt === null) {
switch (status) {
case SUSPEND: return util.stateSuspended;
case COMPLETED: return util.stateCompleted;
default: return util.stateRunning;
}
}
else {
switch (status) {
case COMPLETED: return util.stateKilled;
default: return util.stateInterrupted;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment