> Beyond that, you're inferring threading into the problem.
That's what I was thinking. There are no threads in the example.
That's what I was thinking. There are no threads in the example.
Thread safety is something that needs to be touched on constantly, and it's smart to write your code such that it would be thread safe. Because otherwise, it just looks like a normal function call. And it could take someone ages to figure out why everything is breaking if they were to actually use that example.