-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
The loadrunner api and usecase is already really similar to the promises proposals:
- http://wiki.commonjs.org/wiki/Promises/A
- http://wiki.commonjs.org/wiki/Promises/B
- http://wiki.commonjs.org/wiki/Promises/D
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
Labels
No labels