Created
September 18, 2013 14:05
-
-
Save annevk/6609620 to your computer and use it in GitHub Desktop.
Stream sketch.
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
class Stream { | |
Promise<StreamItem> read(); | |
} | |
class StreamItem { | |
any attribute value; | |
boolean attribute done; | |
} | |
class ByteStreamItem extends StreamItem { | |
ArrayBuffer attribute value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment