Moduleouroboros-consensus-4.2.1.0
Ouroboros.Consensus.Util.NormalForm.StrictTVar
- 2 types
- 20 values
- Packageouroboros-consensus-4.2.1.0
- Exports22
- LicenceApache-2.0
- SourceChecked.hs
Create a StrictMVar from a LazyMVar
It is not guaranteed that the LazyTVar contains a value that is in WHNF, so there is no guarantee that the resulting StrictTVar contains a value that is in WHNF. This should be used with caution.
The resulting StrictTVar has a trivial invariant.
Get the underlying TVar
Since we obviously cannot guarantee that updates to this LazyTVar will be strict, this should be used with caution.
Similarly, we can not guarantee that updates to this LazyTVar do not break the original invariant that the StrictTVar held.
Create an unchecked reference to the given checked StrictTVar.
Note that the invariant is only guaranteed when modifying the checked TVar. Any modification to the unchecked reference might break the invariants.
Instances1NoThunks
NoThunks (StrictTVar IO a) => NoThunks (StrictTVar IO a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Util.NormalForm.StrictTVar · orphan
Orphan instances
1 instanceNoThunks (StrictTVar IO a) => NoThunks (StrictTVar IO a)