Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise-based interface? #4

Open
StevenLangbroek opened this issue Jan 19, 2015 · 0 comments
Open

Promise-based interface? #4

StevenLangbroek opened this issue Jan 19, 2015 · 0 comments

Comments

@StevenLangbroek
Copy link

Would it maybe be nice to have a promise-based API around this? Something along these lines:

var path = getSomePath();

Metronome({
  type: 'frames',
  draw: function(handle, progress){ /* do something */ }
}).then(function(){
  return Metronome({
    type: 'frames',
    draw: function(handle, progress){ /* do something else */ }
}).then(function(){ /* etc */ });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant