Created
January 6, 2020 15:49
-
-
Save svetlanama/d01e7a94ac4454ad511109d1f2ba3353 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var dataCallbacksLeft = data.count | |
func checkDataCompleted() { | |
dataCallbacksLeft -= 1 | |
if dataCallbacksLeft == 0 { | |
// Call major next actions | |
} | |
} | |
asyncFunc() { | |
checkDataCompleted() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment