is this thread-safe? Can you link to the docs? Otherwise we need be careful about thread-pool work.