Skip to content

Instantly share code, notes, and snippets.

@wtfaremyinitials
Created March 23, 2020 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtfaremyinitials/ee8d90d500c54d889e3a7bd7b1757b43 to your computer and use it in GitHub Desktop.
Save wtfaremyinitials/ee8d90d500c54d889e3a7bd7b1757b43 to your computer and use it in GitHub Desktop.
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