Akka streams doesnt run when integer range is large

14 views
Skip to first unread message

Jeffrey Phillips Freeman

unread,
May 10, 2018, 1:17:30 AM5/10/18
to Akka User List
I have some code and it works fine when i specify an integer range that is about a 1000 integers wide but silently fails when is specify a range that is 10,000 wide. Here is a SO link that describes the problem in detail: https://stackoverflow.com/questions/50264569/akka-streams-doesnt-run-when-integer-range-is-large

Konrad “ktoso” Malawski

unread,
May 10, 2018, 5:36:10 AM5/10/18
to akka...@googlegroups.com, Jeffrey Phillips Freeman
This was already answered on stackoverflow;

You likely terminate the app before the stream has time to print all things — you have to wait for that to happen as mentioned on SO,
this is done by using the materialized CompletionStage

-- 
Cheers,
Konrad 'ktoso' Malawski

On May 10, 2018 at 7:17:27, Jeffrey Phillips Freeman (fre...@gmail.com) wrote:

I have some code and it works fine when i specify an integer range that is about a 1000 integers wide but silently fails when is specify a range that is 10,000 wide. Here is a SO link that describes the problem in detail: https://stackoverflow.com/questions/50264569/akka-streams-doesnt-run-when-integer-range-is-large
--
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
>>>>>>>>>>
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Jeffrey Freeman

unread,
May 10, 2018, 5:37:37 AM5/10/18
to Konrad “ktoso” Malawski, akka...@googlegroups.com
Yup someone finally answered it for me after I posted. Thank you though!

On Thu, May 10, 2018 at 5:35 AM, Konrad “ktoso” Malawski <konrad....@lightbend.com> wrote:
This was already answered on stackoverflow;

You likely terminate the app before the stream has time to print all things — you have to wait for that to happen as mentioned on SO,
this is done by using the materialized CompletionStage

-- 
Cheers,
Konrad 'ktoso' Malawski

On May 10, 2018 at 7:17:27, Jeffrey Phillips Freeman (fre...@gmail.com) wrote:

I have some code and it works fine when i specify an integer range that is about a 1000 integers wide but silently fails when is specify a range that is 10,000 wide. Here is a SO link that describes the problem in detail: https://stackoverflow.com/questions/50264569/akka-streams-doesnt-run-when-integer-range-is-large
--
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
>>>>>>>>>>
>>>>>>>>>> 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 akka-user+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages