It should work with .async after groupBy. It can still be same thread. To see it (different threads) you might have to add a sleep in the map.
/Patrik sön 13 aug. 2017 kl. 12:35 skrev Alexey Shuksto <[email protected]>: > Hello there, > > Is there a way to guarantee that subflows after '.groupBy(..)' operation > would be performed in parallel (I.e. by separate actors) until merged back > into Flow? > > For example, in code like 'Flow[Int].groupBy(3,_ % > 3).map(_.toString).mergeSubstreams()' where should I put something like > async barrier? > > I've tried it after groupBy and after map, but according to logs it is > still executed in the same dispatcher thread. > > Scala 2.12.3, Akka 2.5.3. > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: > https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
