Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add io.Parallel #132

Open
guillaumearm opened this issue Mar 29, 2018 · 0 comments
Open

Add io.Parallel #132

guillaumearm opened this issue Mar 29, 2018 · 0 comments
Assignees
Labels
feat This is about feature

Comments

@guillaumearm
Copy link
Owner

guillaumearm commented Mar 29, 2018

waiting for #139

usage:

const { io, handler } = require('handle-io');


const ioFetchAll = io(() => io.Parallel(fetchUser(), fetchData(), fetchMisc()));

const fetchAll = handler(function*() {
  // const [user, data, misc] = yield io.Parallel(fetchUser(), fetchData(), fetchMisc());
  const [user, data, misc] = yield ioFetchAll();
  return { user, data, misc };
})
@guillaumearm guillaumearm added the feat This is about feature label Mar 29, 2018
@guillaumearm guillaumearm self-assigned this Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat This is about feature
Projects
None yet
Development

No branches or pull requests

1 participant