Skip to content

Instantly share code, notes, and snippets.

@DavidDurman
Created January 21, 2013 13:34
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 DavidDurman/4586078 to your computer and use it in GitHub Desktop.
Save DavidDurman/4586078 to your computer and use it in GitHub Desktop.
var m = require('statechart-sync');
m.count = 3;
m.done = function() { /* ... */ };
var dispatch = function(err, doc) { m.dispatch(err ? 'error' : 'data', err || doc);
m.run();
db.get('myID1', dispatch);
db.get('myID2', dispatch);
db.get('myID3', dispatch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment