class PerformViaReader[F[_], R, C[_], Cancel] extends PerformVia[[γ$8$]Kleisli[F, R, γ$8$], C, Cancel]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PerformViaReader
- PerformVia
- WithContext
- Context
- ContextBase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new PerformViaReader(p: PerformVia[F, C, Cancel])(implicit arg0: Functor[F])
Type Members
-
type
Ctx = Performer[[γ$8$]Kleisli[F, R, γ$8$], C, Cancel]
- Definition Classes
- WithContext → Context
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
asWithContext: WithContext[[γ$8$]Kleisli[F, R, γ$8$], Performer[[γ$8$]Kleisli[F, R, γ$8$], C, Cancel]]
- Definition Classes
- WithContext → Context
-
def
ask[A](f: (Ctx) ⇒ A): Kleisli[F, R, A]
Returns context modified by pure function
f
.Returns context modified by pure function
f
.For example one can use it like that:
Context[F].ask(myCtx => myCtx.toString)
Also there is more convenient syntax:
import tofu.syntax.context._ ask[F](myCtx => myCtx.toString)
- Definition Classes
- WithContext → Context
- Note
It does not affect context itself.
-
def
askF[A](f: (Ctx) ⇒ Kleisli[F, R, A])(implicit F: FlatMap[[γ$8$]Kleisli[F, R, γ$8$]]): Kleisli[F, R, A]
Same as ask but
f
is effectualSame as ask but
f
is effectual- Definition Classes
- WithContext → Context
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
context: Kleisli[F, R, Performer[[γ$8$]Kleisli[F, R, γ$8$], C, Cancel]]
- Definition Classes
- PerformVia → Context
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extract[A](extract: Extract[Ctx, A]): ContextExtractInstance[[γ$8$]Kleisli[F, R, γ$8$], Ctx, A]
Allows to focus context on its inside with lens.
Allows to focus context on its inside with lens.
- extract
lens that can extract value of type
A
fromCtx
- Definition Classes
- WithContext → Context
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
functor: Functor[[γ$9$]Kleisli[F, R, γ$9$]]
- Definition Classes
- PerformViaReader → Context
-
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
performer: ReaderT[F, R, Performer[[γ$10$]Kleisli[F, R, γ$10$], C, Cancel]]
- Definition Classes
- PerformViaReader → PerformVia
-
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
- @throws( ... ) @native()