<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Elixir recently introduced Task.async_stream/3,5 functions [1]. The primary feature is a pmap over a collection with a bounded concurrency. It's surprisingly useful and covers a lot of use cases in practice.
<div>An additional nice thing is that it accepts a potentially lazy collection and returns a lazy collection as well, so it's possible to consume only a part of it.</div>
</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
<div>Michał.</div>
<div><br /></div>
<div>[1]: <a href="https://hexdocs.pm/elixir/Task.html#async_stream/3">https://hexdocs.pm/elixir/Task.html#async_stream/3</a></div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
On 23 Aug 2017, 13:07 +0200, zxq9 <zxq9@zxq9.com>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">On 2017年08月22日 火曜日 18:34:44 you wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">You might want to look at this project<br />
<br />
http://skel.weebly.com/about-skel.html<br />
<br />
Which has a number of algorithmic skeletons for parallelizing erlang programs<br /></blockquote>
<br />
Hi, Joe!<br />
<br />
Thank you for pointing out Skel!<br />
<br />
I'll have more time to see how hard it would be to package it (or maybe something derived from it) soon. I imagine it might be an easy way to scratch the pmap-flavored itch Ola was talking about.<br />
<br />
-Craig<br />
_______________________________________________<br />
erlang-questions mailing list<br />
erlang-questions@erlang.org<br />
http://erlang.org/mailman/listinfo/erlang-questions<br /></blockquote>
<div></div>
</div>
</body>
</html>