readIORef<T> function

IO<T> readIORef<T>(
  1. IORef<T> ref
)

Extracts a current value of the IORef and returns it inside the IO monad.

Implementation

IO<T> readIORef<T>(IORef<T> ref) => ref.read();