object IO extends IOCompanionPlatform with IOLowPriorityImplicits
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- IO
- IOLowPriorityImplicits
- IOCompanionPlatform
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
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
- def apply[A](thunk: ⇒ A): IO[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def async[A](k: ((Either[Throwable, A]) ⇒ Unit) ⇒ IO[Option[IO[Unit]]]): IO[A]
- def async_[A](k: ((Either[Throwable, A]) ⇒ Unit) ⇒ Unit): IO[A]
-
def
blocking[A](thunk: ⇒ A): IO[A]
- Definition Classes
- IOCompanionPlatform
- def both[A, B](left: IO[A], right: IO[B]): IO[(A, B)]
- def bothOutcome[A, B](left: IO[A], right: IO[B]): IO[(OutcomeIO[A], OutcomeIO[B])]
- def canceled: IO[Unit]
- def cede: IO[Unit]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def defer[A](thunk: ⇒ IO[A]): IO[A]
- def delay[A](thunk: ⇒ A): IO[A]
- implicit def effectForIO: Effect[IO]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def eval[A](fa: Eval[A]): IO[A]
- def executionContext: IO[ExecutionContext]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromCompletableFuture[A](fut: IO[CompletableFuture[A]]): IO[A]
- Definition Classes
- IOCompanionPlatform
- def fromEither[A](e: Either[Throwable, A]): IO[A]
- def fromFuture[A](fut: IO[Future[A]]): IO[A]
- def fromOption[A](o: Option[A])(orElse: ⇒ Throwable): IO[A]
- def fromTry[A](t: Try[A]): IO[A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
interruptible[A](many: Boolean)(thunk: ⇒ A): IO[A]
- Definition Classes
- IOCompanionPlatform
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def monoidForIO[A](implicit arg0: Monoid[A]): Monoid[IO[A]]
- def monotonic: IO[FiniteDuration]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def never[A]: IO[A]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def parallelForIO: Aux[IO, [β$1$]T[IO, β$1$]]
- def pure[A](value: A): IO[A]
- def race[A, B](left: IO[A], right: IO[B]): IO[Either[A, B]]
- def racePair[A, B](left: IO[A], right: IO[B]): IO[Either[(OutcomeIO[A], FiberIO[B]), (FiberIO[A], OutcomeIO[B])]]
- def raiseError[A](t: Throwable): IO[A]
-
def
raiseUnless(cond: Boolean)(e: ⇒ Throwable): IO[Unit]
Returns
raiseError
whencond
is false, otherwise IO.unitReturns
raiseError
whencond
is false, otherwise IO.unitval tooMany = 5 val x: Int = ??? IO.raiseUnless(x < tooMany)(new IllegalArgumentException("Too many"))
Example: -
def
raiseWhen(cond: Boolean)(e: ⇒ Throwable): IO[Unit]
Returns
raiseError
when thecond
is true, otherwiseIO.unit
Returns
raiseError
when thecond
is true, otherwiseIO.unit
val tooMany = 5 val x: Int = ??? IO.raiseWhen(x >= tooMany)(new IllegalArgumentException("Too many"))
Example: - def realTime: IO[FiniteDuration]
-
implicit
def
semigroupForIO[A](implicit arg0: Semigroup[A]): Semigroup[IO[A]]
- Definition Classes
- IOLowPriorityImplicits
- implicit val semigroupKForIO: SemigroupK[IO]
- implicit def showForIO[A](implicit arg0: Show[A]): Show[IO[A]]
-
implicit
def
showForIONoPure[A]: Show[IO[A]]
- Definition Classes
- IOLowPriorityImplicits
- def sleep(delay: FiniteDuration): IO[Unit]
-
def
suspend[A](hint: Type)(thunk: ⇒ A): IO[A]
- Definition Classes
- IOCompanionPlatform
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toK[F[_]](implicit arg0: Effect[F]): ~>[IO, F]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def uncancelable[A](body: (Poll[IO]) ⇒ IO[A]): IO[A]
- def unit: IO[Unit]
-
def
unlessA(cond: Boolean)(action: ⇒ IO[Unit]): IO[Unit]
Returns the given argument if
cond
is false, otherwiseIO.Unit
Returns the given argument if
cond
is false, otherwiseIO.Unit
- See also
IO.whenA for the inverse
IO.raiseWhen for conditionally raising an error
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
whenA(cond: Boolean)(action: ⇒ IO[Unit]): IO[Unit]
Returns the given argument if
cond
is true, otherwiseIO.Unit
Returns the given argument if
cond
is true, otherwiseIO.Unit
- See also
IO.unlessA for the inverse
IO.raiseWhen for conditionally raising an error