Skip to content

Instantly share code, notes, and snippets.

@annevk
Created September 18, 2013 14:05
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 annevk/6609620 to your computer and use it in GitHub Desktop.
Save annevk/6609620 to your computer and use it in GitHub Desktop.
Stream sketch.
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