Y
Hacker News
new
|
ask
|
show
|
jobs
by
sedatk
480 days ago
An empty check wouldn't be thread-safe either.
1 comments
vips7L
479 days ago
Hmm I don’t think we know that from the post. The list of unrelated objects could be immutable or mutable and never modified. An isEmpty check is 100% safe to be called concurrently in both those situations
link