2 ms·
Hm. Are other things in the reflect package threadsafe? By default I wouldn't expect it to be since it doesn't seem to claim it is, but it is a little surpris
by Groxx 10y ago
Hm. Are other things in the reflect package threadsafe? By default I wouldn't expect it to be since it doesn't seem to claim it is, but it is a little surprising that a language-introspection feature could just crash because you're doing it at the same time as someone else. And it seems hard to guard against - you could carefully lock on the class for your own code, but you can't really guarantee libraries will work with that (e.g. they may get into deadlocks).