Created
July 11, 2014 20:50
-
-
Save Raynos/10c55f51041d0de06227 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
(* | |
next(cb). | |
- Calls cb(Error) if error | |
- Calls cb(null, value) if value | |
- Calls cb(null, undefined) if finished | |
end(cb) | |
- Aborts the underlying stream | |
- calls cb() once cleaned up | |
A stream is a ordered sequence of | |
- zero or more Data followed by Error or Finished | |
*) | |
type AsyncIterator := { | |
next: ((Error | null, Any | undefined) => void) => void, | |
end: (() => void) => void | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment