read method

IO<T> read()

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

Implementation

IO<T> read() => IO.of(_value);