Packages

object SyncIO extends SyncIOInstances

Source
SyncIO.scala
Linear Supertypes
SyncIOInstances, SyncIOLowPriorityInstances, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SyncIO
  2. SyncIOInstances
  3. SyncIOLowPriorityInstances
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[A](thunk: => A): SyncIO[A]

    Suspends a synchronous side effect in SyncIO.

    Suspends a synchronous side effect in SyncIO.

    Any exceptions thrown by the effect will be caught and sequenced into the SyncIO.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def defer[A](thunk: => SyncIO[A]): SyncIO[A]

    Suspends a synchronous side effect which produces a SyncIO in SyncIO.

    Suspends a synchronous side effect which produces a SyncIO in SyncIO.

    This is useful for trampolining (i.e. when the side effect is conceptually the allocation of a stack frame). Any exceptions thrown by the side effect will be caught and sequenced into the SyncIO.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def eval[A](fa: Eval[A]): SyncIO[A]

    Lifts an Eval into SyncIO.

    Lifts an Eval into SyncIO.

    This function will preserve the evaluation semantics of any actions that are lifted into the pure SyncIO. Eager Eval instances will be converted into thunk-less SyncIO (i.e. eager SyncIO), while lazy eval and memoized will be executed as such.

  11. def fromEither[A](e: Either[Throwable, A]): SyncIO[A]

    Lifts an Either[Throwable, A] into the SyncIO[A] context, raising the throwable if it exists.

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def pure[A](a: A): SyncIO[A]

    Suspends a pure value in SyncIO.

    Suspends a pure value in SyncIO.

    This should only be used if the value in question has "already" been computed! In other words, something like SyncIO.pure(readLine) is most definitely not the right thing to do! However, SyncIO.pure(42) is correct and will be more efficient (when evaluated) than SyncIO(42), due to avoiding the allocation of extra thunks.

  19. def raiseError[A](e: Throwable): SyncIO[A]

    Constructs a SyncIO which sequences the specified exception.

    Constructs a SyncIO which sequences the specified exception.

    If this SyncIO is run using unsafeRunSync the exception will be thrown. This exception can be "caught" (or rather, materialized into value-space) using the attempt method.

    See also

    SyncIO#attempt

  20. implicit val syncIOalign: Align[SyncIO]
    Definition Classes
    SyncIOInstances
  21. implicit val syncIOsyncEffect: SyncEffect[SyncIO]
    Definition Classes
    SyncIOInstances
  22. implicit def syncIoMonoid[A](implicit arg0: Monoid[A]): Monoid[SyncIO[A]]
    Definition Classes
    SyncIOInstances
  23. implicit def syncIoSemigroup[A](implicit arg0: Semigroup[A]): Semigroup[SyncIO[A]]
    Definition Classes
    SyncIOLowPriorityInstances
  24. implicit val syncIoSemigroupK: SemigroupK[SyncIO]
    Definition Classes
    SyncIOInstances
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. val unit: SyncIO[Unit]

    Alias for SyncIO.pure(()).

  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def suspend[A](thunk: => SyncIO[A]): SyncIO[A]

    Suspends a synchronous side effect which produces a SyncIO in SyncIO.

    Suspends a synchronous side effect which produces a SyncIO in SyncIO.

    This is useful for trampolining (i.e. when the side effect is conceptually the allocation of a stack frame). Any exceptions thrown by the side effect will be caught and sequenced into the SyncIO.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.3) use defer

  3. val syncIoSync: Sync[SyncIO]
    Definition Classes
    SyncIOInstances
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Signature changed to return SyncEffect

Inherited from SyncIOInstances

Inherited from SyncIOLowPriorityInstances

Inherited from AnyRef

Inherited from Any

Ungrouped