Created
August 28, 2019 14:14
-
-
Save eric-corumdigital/2631a350803027471698f60d61b464bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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