Fork me on GitHub
#core-async
<
2015-12-18
>
settinghead20:12:50

is there a way to achieve something similar to Promise.all in JavaScript with core.async?

ghadi20:12:01

somewhat, it's not quite the same

ghadi20:12:21

see core.async/merge which is a similar building block

ghadi20:12:32

channels don't have failure/rejection

ghadi20:12:54

so you'd achieve something similar to Promise.all it by waiting for all of the channels

ghadi20:12:41

the article states: > core.async doesn’t provide a built-in fn that both takes the value from each channel and returns those values in the order the channels were given.

ghadi20:12:00

merge will take values from any of the sources until exhausted

settinghead21:12:10

@ghadi: thanks. i’ll look into it