We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d880e9 commit 5ea34ffCopy full SHA for 5ea34ff
entities/src/main/scala/com/devsisters/shardcake/Sharding.scala
@@ -47,7 +47,7 @@ class Sharding private (
47
ZIO.logDebug(s"Stopping local entities") *>
48
isShuttingDownRef.set(true) *>
49
entityStates.get.flatMap(
50
- ZIO.foreachDiscard(_) { case (name, entity) =>
+ ZIO.foreachParDiscard(_) { case (name, entity) =>
51
entity.entityManager.terminateAllEntities.forkDaemon // run in a daemon fiber to make sure it doesn't get interrupted
52
.flatMap(_.join)
53
.catchAllCause(ZIO.logErrorCause(s"Error during stop of entity $name", _))
0 commit comments