Created
March 23, 2020 17:35
-
-
Save wtfaremyinitials/ee8d90d500c54d889e3a7bd7b1757b43 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
async function* openFifo(path) { | |
while(true) { | |
let file = await Deno.open(path, 'r') | |
let data = await Deno.readAll(file) | |
yield data | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment