Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val bookings: F[BookingKey => EitherK[Booking, BookingCommandRejection, F]] =
- genericAkkaRuntime.runBehavior(/*...*/)
- // Type alias for simplicity.
- // Equivalent to:
- // BookingKey => F[Booking[λ[α => F[Either[BookingCommandRejection, α]]]]]
- type Bookings[F[_]] = Entities.Rejectable[BookingKey, Booking, F, BookingCommandRejection]
- val adaptedBookings: F[Bookings[F]] =
- bookings.map(Eventsourced.Entities.fromEitherK(_))
Add Comment
Please, Sign In to add comment