Guest User

Untitled

a guest
Mar 22nd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. export const any = inChans => outChan => {
  2. inChans.forEach(async inChan => {
  3. while (true) {
  4. const msg = await take(inChan)
  5. await put(outChan, msg)
  6. }
  7. })
  8.  
  9. return outChan
  10. }
Add Comment
Please, Sign In to add comment