Skip to content

Instantly share code, notes, and snippets.

@ztellman
Last active August 29, 2015 14:22
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 ztellman/2e2a266076f34e3f5892 to your computer and use it in GitHub Desktop.
Save ztellman/2e2a266076f34e3f5892 to your computer and use it in GitHub Desktop.
(defprotocol RingStream
(synchronous? [_]))
(defprotocol RingWritableStream
(put! [_ x cb])
(put-sync! [_ x]))
(defprotocol RingReadableStream
(take! [_ cb])
(take-sync! [_]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment