Last active
May 6, 2018 07:50
-
-
Save puemos/1628cfd26ad32f458e630c803887b54b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const segmentsCount = segments.length | |
// transform the segments list to an action list | |
const actions = segments.map((segment, index) => | |
put(queueChannel, { payload: { uri: segment.uri, index, segmentsCount } }) | |
) | |
// fire them all together | |
yield all(actions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment