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
I've looked through the source code, and the Uninitialized case does say:
-- The cache is uninitialized. Mark the cache as initializing to block other-- threads. Initialize and return.Uninitialized->pure (refreshCache Uninitialized cachedT)
But as you see, below it, it just refreshes the cache.
There's only two spots where Initialized is even written in the code (excluding the comment) and that is in the definition and the case.
I'm not completely sure if adding writeTVar Initialized cachedT is all that's needed. It does seem like giving the refreshCache function Uninitialized as previousState would ensure it should be reset on getting an exception. So might be an easy fix? 🤔
The text was updated successfully, but these errors were encountered:
I've looked through the source code, and the
Uninitialized
case does say:But as you see, below it, it just refreshes the cache.
There's only two spots where
Initialized
is even written in the code (excluding the comment) and that is in the definition and the case.I'm not completely sure if adding
writeTVar Initialized cachedT
is all that's needed. It does seem like giving therefreshCache
functionUninitialized
aspreviousState
would ensure it should be reset on getting an exception. So might be an easy fix? 🤔The text was updated successfully, but these errors were encountered: