OptionReaction
io.github.positionpal.reaction.ReactionADT.OptionReaction
trait OptionReaction[E, S, T] extends ComposableReaction[E, S, Option[T]], FilterableReaction[E, S, Option[T]]
A specialized version of ReactionADT where the result of the reaction is wrapped in an Option
. This trait provides composition and filtering for reactions that return an Option[T]
.
Type parameters
- T
-
The type of the result wrapped in the
Option
.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited and Abstract types
Represent the reaction that's triggered within a specific Context
Represent the reaction that's triggered within a specific Context
Type parameters
- F
-
The effect to apply
Attributes
- Inherited from:
- ReactionADT
type ReactionResult
Represent the result of the reaction
Value members
Extensions
Extensions
Inherited extensions
extension [F[_]](reaction: Reaction[F])(using evidence$1: Monad[F])
Executes the Reaction producing a ReactionResult
Executes the Reaction producing a ReactionResult
Value parameters
Attributes
- Returns
-
a functional structure
F
in which the result is contained - Inherited from:
- ReactionADT
In this article