Package: effect
Module: RcRef
Invalidates the currently cached resource, if one has been acquired.
When to use
Use to force future RcRef.get calls to acquire a fresh resource when the
currently cached resource should no longer be reused.
Details
After invalidation, the next get acquires a fresh resource.
Gotchas
Invalidation does not revoke resources already borrowed by active scopes; those remain usable until their scopes close.
See
get for acquiring the current cached resource or the fresh resource after invalidationSignature
declare const invalidate: <A, E>(self: RcRef<A, E>) => Effect.Effect<void>
Since v3.19.6