Skip to content

Instantly share code, notes, and snippets.

@jbadger3
Created November 29, 2022 19:08
Show Gist options
  • Save jbadger3/2b8a18d79bd0b8c69b60b8667cef650e to your computer and use it in GitHub Desktop.
Save jbadger3/2b8a18d79bd0b8c69b60b8667cef650e to your computer and use it in GitHub Desktop.
Use of async-await for reading data from a FileHandle
for try await line in FileHandle.standardOutput.bytes.lines {
///Do something with output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment