Skip to content

Instantly share code, notes, and snippets.

@mpj
Created September 11, 2014 06:26
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 mpj/7fd7f209c8d77f664215 to your computer and use it in GitHub Desktop.
Save mpj/7fd7f209c8d77f664215 to your computer and use it in GitHub Desktop.
orderStream = broker('orders')
unhandledOrdersStream =
_(broker('orders')).filter (order) -> not order.shippingdate
unhandledOrdersStream.each (order) ->
# do stuff with order that is not handled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment