newIORef<T> function

IO<IORef<T>> newIORef<T>(
  1. T initial
)

Creates a new IORef inside an IO monad with a given initial value.

Implementation

IO<IORef<T>> newIORef<T>(T initial) => IORef.create(initial);