I am working on a chrome extension that uses asynchronous functions, and I have a global string variable that is set by the function:
my_global_variable + = a_string
I would know if there is a risk that if I read my_global_variable in another function at the same time, I only have a_string part.
In other words, is concatenation (a more general instruction) an atomic operation?
source share