You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate of #4121; this is not a bug but documented behavior. Your main coroutine attempts to access a value access to which it hasn't declared. You can fix the issue by replacing
When using an
UnconfinedTestDispatcher
, the context element for a thread local is not restored when the coroutine is suspended.Reproduction
playground
Expected: "after withContext: initial"
Received: "after withContext: inContext"
NOTE: Removing
(UnconfinedTestDispatcher())
from the test case above produces the expected result.This seems related to #2930 and #4121 as the repro steps are similar.
The text was updated successfully, but these errors were encountered: