Skip to content

Instantly share code, notes, and snippets.

Created April 29, 2012 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/2551510 to your computer and use it in GitHub Desktop.
Save anonymous/2551510 to your computer and use it in GitHub Desktop.
a guest on Apr 29th, 2012 - pastebin.com/4jC1MwiM
var res = {}
var errored = false
getMetadata(key, EPID, function(err, metadata){
if (errored) return
if (err) {
errored = true
cb(err)
return }
res.metadata = metadata
if (res.streams) cb(null, res) })
getStreams(key, EPID, function(err, streams){
if (errored) return
if (err) {
errored = true
cb(err)
return }
res.streams = streams
if (res.metadata) cb(null, res)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment