object Scenario
- Alphabetic
- By Inheritance
- Scenario
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
done[F[_]]: Scenario[F, Unit]
Unit value lifted to Scenario context with effect
F
. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eval[F[_], A](fa: F[A]): Scenario[F, A]
Suspends an effectful value of type
A
into Scenario context.Suspends an effectful value of type
A
into Scenario context.Generally used for describing bot part of a scenario (e.g. sending messages, making calls to external APIs, etc.)
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- implicit def functionKInstance[F[_]]: ~>[F, [β$3$]Scenario[F, β$3$]]
-
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
- implicit def monadErrorInstance[F[_]]: MonadError[[β$0$]Scenario[F, β$0$], Throwable]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
next[F[_], A](pf: PartialFunction[TelegramMessage, A]): Scenario[F, A]
Defines following step of the scenario.
Defines following step of the scenario.
If the first elements belongs to the
pf
domain, it is going to be matched and transformed into the value of typeA
usingpf
. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pure[F[_], A](a: A): Scenario[F, A]
Lifts pure value to Scenario context.
-
def
raiseError[F[_]](e: Throwable): Scenario[F, Nothing]
Lifts error value to the Scenario context.
Lifts error value to the Scenario context.
Error can be safely brought back to the return value domain using
attempt
method. It also can be handled using various methods fromMonadError
such ashandleErrorWith
,recover
etc.- returns
Scenario which fails with
e
-
def
start[F[_], A](pf: PartialFunction[TelegramMessage, A]): Scenario[F, A]
Defines the beginning of the scenario.
Defines the beginning of the scenario.
Each input value from
pf
domain is going to be matched and transformed into a value of typeA
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @native() @throws( ... )