sealed trait RIO[-R, +A] extends (R) ⇒ A
Representation of an effectful operation, based on Haskell's RIO Monad.
- Alphabetic
- By Inheritance
- RIO
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete 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
-
final
def
andFinally[RR <: R, B](that: RIO[RR, B]): RIO[RR, A]
Combines two operations by discarding the result of the second operation.
-
final
def
andThen[RR <: R, B](that: RIO[RR, B]): RIO[RR, B]
Combines two operations by discarding the result of the first operation.
-
def
andThen[A](g: (A) ⇒ A): (R) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
apply(resource: R): A
Alias for run, so that RIO can be executed as a function.
Alias for run, so that RIO can be executed as a function.
- Definition Classes
- RIO → Function1
-
final
def
as[B](x: B): RIO[R, B]
Changes the result of this operation to another value.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ R): (A) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
contramap[RR](f: (RR) ⇒ R): RIO[RR, A]
Transforms the resource required by this operation.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
flatMap[RR <: R, B](f: (A) ⇒ RIO[RR, B]): RIO[RR, B]
Combines two operations by applying a function to the result of the first operation.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
provide(res: R): RIO[Any, A]
Provides the required resource to this operation.
-
final
def
run(resource: R): A
Runs this operation.
Runs this operation.
- Annotations
- @tailrec()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
lazy val
unit: RIO[R, Unit]
Changes the result of this operation unit.
-
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()
-
final
def
zip[RR <: R, B](that: RIO[RR, B]): RIO[RR, (A, B)]
Combines two operations by combining their results into a tuple.
-
final
def
zipWith[RR <: R, B, C](that: RIO[RR, B])(f: (A, B) ⇒ C): RIO[RR, C]
Combines two operations by combining their results with the given function.