by neillyons · 2mo ago · 0 comments
[
"https://httpbin.org/delay/1",
"https://httpbin.org/delay/2",
"https://httpbin.org/delay/3"
]
|> Task.async_stream(
&Req.get!/1,
max_concurrency: 3,
ordered: true,
timeout: to_timeout(second: 2)
)
|> Enum.to_list()No comments yet.