Created
March 2, 2017 10:27
-
-
Save zntfdr/2b6e856e39f0deb5330d8fb44c159ec7 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 (resourceIsAvailable) { | |
resourceIsAvailable = false | |
useResource() | |
resourceIsAvailable = true | |
} else { | |
// resource is not available, wait or do something else | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment