Skip to content

Instantly share code, notes, and snippets.

@rektide
Last active December 20, 2015 01:58
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 rektide/6052468 to your computer and use it in GitHub Desktop.
Save rektide/6052468 to your computer and use it in GitHub Desktop.
Queue of Promises

Promise Callbacks

callback AnyCallback = any (optional any value);

is how promise callbacks work now

it signifies a value is ready

Stream Callbacks

for streams and queues, we want a multi-sequence:

callback IterativeCallback = any (optional any value, optional Promise next)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment