create<T> static method

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

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

Implementation

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