Created
October 5, 2017 02:09
-
-
Save mattpodwysocki/361eda999e50a9d6928462ef7e2d5ec6 to your computer and use it in GitHub Desktop.
This file contains 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
'use strict'; | |
import * as fs from 'fs'; | |
import { AsyncSink, AsyncIterable } from 'ix'; | |
AsyncIterable.from(fs | |
.createReadStream('some.file') | |
.pipe(new AsyncSink())) | |
.flatMap(file => /* yes */) | |
.forEach(/* HEAVEN */) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment