Extracts a current value of the IORef and returns it inside the IO monad.
IO<T> read() => IO.of(_value);