Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
idugalic committed May 23, 2024
2 parents 7608d08 + 4935efe commit 326d332
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ interface EventOrchestratingComputation<C, S, E> : ISaga<E, C>, IDecider<C, S, E
resultingEvents
.flatMapConcat { react(it) }
.onEach { c ->
val newEvents = flowOf(fetchEvents(c), resultingEvents)
val previousEvents = resultingEvents.toList().asFlow()
val newEvents = flowOf(fetchEvents(c), previousEvents)
.flattenConcat()
.computeNewEventsByOrchestrating(c, fetchEvents)
resultingEvents = flowOf(resultingEvents, newEvents).flattenConcat()
Expand Down

0 comments on commit 326d332

Please sign in to comment.