I have code like this:
while(true){
var x = get();
new Thread(()->parse(x)).start();
}
It dawned upon me that this may not be thread safe as the variable x may be (?) getting re-assigned.
However my function seems to be working fine.
Is this actually safe?