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/defer? #4

Open
fat opened this issue May 18, 2011 · 0 comments
Open

promise/defer? #4

fat opened this issue May 18, 2011 · 0 comments

Comments

@fat
Copy link
Collaborator

fat commented May 18, 2011

The loadrunner api and usecase is already really similar to the promises proposals:

briefly... code looks something like:

when(thishappens, function() {
   //do something
});

//  or

when(thishappens).then(do something)

This is simliar to the loadrunner api:

 using(thisFile, function({...});

  // and 

using(thisFile).then(function(){...});

My question/thought is why not allow these two apis to interface -- Then you could do something like this:

when(jsonReturns, animationCompletes, fileLoads).then(function(){
  //do something here...
});

Also, I'm imagining loadrunner becoming more of an extension of promise/defer then I'm think of promise/defer becoming an extension of loadrunner. Just an idea -- more than an issue really.

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