final class StateSnapshotF[F[_], A[_], S] extends Write[F, A, S]
- Alphabetic
- By Inheritance
- StateSnapshotF
- Write
- ModState
- SetState
- Base
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Type Members
- type WithAsyncEffect[G[_]] = StateSnapshotF[F, G, S]
- Definition Classes
- StateSnapshotF → Write → ModState → SetState → Base
- type WithEffect[G[_]] = StateSnapshotF[G, A, S]
- Definition Classes
- StateSnapshotF → Write → ModState → SetState → Base
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def A: Async[A]
- Attributes
- protected
- Definition Classes
- StateSnapshotF → Base
- implicit def F: UnsafeSync[F]
- Attributes
- protected
- Definition Classes
- StateSnapshotF → Base
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def async(f: (Sync[Unit]) => F[Unit]): A[Unit]
- Attributes
- protected
- Definition Classes
- Base
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def modState[G[_]](mod: (S) => S, callback: => G[Unit])(implicit G: Dispatch[G]): F[Unit]
- Definition Classes
- ModState
- final def modState(mod: (S) => S): F[Unit]
- Definition Classes
- ModState
- final def modStateAsync(mod: (S) => S): A[Unit]
- Definition Classes
- ModState
- def modStateOption[G[_]](mod: (S) => Option[S], callback: => G[Unit])(implicit G: Dispatch[G]): F[Unit]
- callback
Executed regardless of whether state is changed.
- Definition Classes
- StateSnapshotF → ModState
- final def modStateOption(mod: (S) => Option[S]): F[Unit]
- Definition Classes
- ModState
- final def modStateOptionAsync(mod: (S) => Option[S]): A[Unit]
- Definition Classes
- ModState
- def narrowOption[T <: S](implicit arg0: ClassTag[T]): Option[StateSnapshotF[F, A, T]]
- returns
Noneifvalue: Sisn'tvalue: Tas well.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def setState[G[_]](newState: S, callback: => G[Unit])(implicit G: Dispatch[G]): F[Unit]
- Definition Classes
- SetState
- final def setState(newState: S): F[Unit]
- Definition Classes
- SetState
- final def setStateAsync(newState: S): A[Unit]
- Definition Classes
- SetState
- def setStateOption[G[_]](newState: Option[S], callback: => G[Unit])(implicit G: Dispatch[G]): F[Unit]
- callback
Executed regardless of whether state is changed.
- Definition Classes
- StateSnapshotF → SetState
- final def setStateOption(newState: Option[S]): F[Unit]
- Definition Classes
- SetState
- final def setStateOptionAsync(newState: Option[S]): A[Unit]
- Definition Classes
- SetState
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toModStateFn: ModStateFn[F, A, S]
- Definition Classes
- ModState
- def toSetStateFn: SetStateFn[F, A, S]
- Definition Classes
- SetState
- def toString(): String
- Definition Classes
- StateSnapshotF → AnyRef → Any
- val underlyingSetFn: Reusable[SetFn[F, S]]
- def unsafeWiden[T >: S](implicit ct: ClassTag[S]): StateSnapshotF[F, A, T]
Unsafe because writes may be dropped.
Unsafe because writes may be dropped.
Eg. if you widen a
StateSnapshot[Banana]intoStateSnapshot[Food], callingsetState(banana2)will work butsetState(pasta)will be silently ignored. - val value: S
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withAsyncEffect[G[_]](implicit G: Async[G]): WithAsyncEffect[G]
- Definition Classes
- StateSnapshotF → Base
- def withEffect[G[_]](implicit G: UnsafeSync[G]): WithEffect[G]
- Definition Classes
- StateSnapshotF → Base
- final def withEffectsImpure: WithEffect[Id]
- Definition Classes
- Base
- final def withEffectsPure: WithEffect[Sync]
- Definition Classes
- Base
- def withReuse: InstanceMethodsWithReuse[F, A, S]
- def withValue(s: S): StateSnapshotF[F, A, S]
THIS WILL VOID REUSABILITY.
THIS WILL VOID REUSABILITY.
The resulting
StateSnapshotF[F, A, S]will not be reusable. - def xmapState[T](f: (S) => T)(g: (T) => S): StateSnapshotF[F, A, T]
THIS WILL VOID REUSABILITY.
THIS WILL VOID REUSABILITY.
The resulting
StateSnapshot[T]will not be reusable. - def zoomState[T](f: (S) => T)(g: (T) => (S) => S): StateSnapshotF[F, A, T]
THIS WILL VOID REUSABILITY.
THIS WILL VOID REUSABILITY.
The resulting
StateSnapshot[T]will not be reusable. - def zoomStateOption[T](f: (S) => Option[T])(g: (T) => (S) => S): Option[StateSnapshotF[F, A, T]]
THIS WILL VOID REUSABILITY.
THIS WILL VOID REUSABILITY.
The resulting
StateSnapshot[T]will not be reusable.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)