Skip to content

Instantly share code, notes, and snippets.

@whoiskai
Created March 29, 2020 09:18
Show Gist options
  • Save whoiskai/f110b2db38e1a1d22453749653c65117 to your computer and use it in GitHub Desktop.
Save whoiskai/f110b2db38e1a1d22453749653c65117 to your computer and use it in GitHub Desktop.
// Some global variable x
let x = 1
// Module A running concurrently
x += 1
print(x) // <- what is x here?
// Module B running concurrently
x += 2
print(x) // <- what is x here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment