Ensure that the thread-local context is created properly for background threads, and not just for the main thread.
Fixes #78.
There's a known test failure, likely due to some other test changing the context and not restoring the original (the test added in this PR runs fine by itself, but not as part of the suite). I'll track that down and fix it in a separate PR.
Ensure that the thread-local context is created properly for background threads, and not just for the main thread.
Fixes #78.
There's a known test failure, likely due to some other test changing the context and not restoring the original (the test added in this PR runs fine by itself, but not as part of the suite). I'll track that down and fix it in a separate PR.