Skip to content

Instantly share code, notes, and snippets.

@annevk
Created September 18, 2013 14:05
Show Gist options
  • 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