Skip to content

Instantly share code, notes, and snippets.

@svasva
Created August 25, 2013 10:56
Show Gist options
  • Save svasva/6333247 to your computer and use it in GitHub Desktop.
Save svasva/6333247 to your computer and use it in GitHub Desktop.
Meteor.processCurrs = ->
Currencies.find().forEach (curr) ->
console.log "Processing", curr.name
Meteor.setTimeout -> curr.client().processTransactions()
Meteor.setInterval Meteor.processCurrs, 30*1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment