Skip to content

promise/defer? #4

@fat

Description

@fat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions