GraftJS / graft

full-stack javascript through microservices
http://graft.io
MIT License
227 stars 15 forks source link

graft.branch should be asynchronous #25

Open AdrianRossouw opened 9 years ago

AdrianRossouw commented 9 years ago

currently the first argument to .branch returns a .truthy to decide whether or not to direct messages to the second argument.

it occured to me that we might need it to be asynchronous (only authenticated users past this point), and we might need to be in situations where it returns a different stream instead of the one specified (ie: pipe things onto it)