Re: [akka-user] [akka-streams] Accessing the dispatcher used for a mapAsync stage

2016-08-16 Thread Itamar Ravid
Thanks Endre! -- >> 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

Re: [akka-user] [akka-streams] Accessing the dispatcher used for a mapAsync stage

2016-08-16 Thread Endre Varga
Hi, There is no way to get the execution context inside such a simple operator, unfortunately. Inside a GraphStage you can access the materializer from the logic: http://doc.akka.io/api/akka/2.4/index.html#akka.stream.stage.GraphStageLogic@materializer:akka.stream.Materializer Unfortunately

[akka-user] [akka-streams] Accessing the dispatcher used for a mapAsync stage

2016-08-11 Thread Itamar Ravid
Hello everyone, Is there a canonical way of accessing the dispatcher/ExecutionContext used for a mapAsync stage? I would like to use the monadic combinators on a future within my mapAsync stage, and these require an implicit ExecutionContext. Contrived example: ``` def myFlow =