GithubHelp home page GithubHelp logo

lvivski / davy Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 1.0 121 KB

Yet another Promises/A+ implementation optimized for speed and simplicity.

License: MIT License

Makefile 3.52% JavaScript 96.48%

davy's Issues

Promise.all using undefined resolver

Hi,

When calling Promise.all with an array, it will try to resolve all promises using Promise.each, calling it on the array and a resolve function ( https://github.com/lvivski/davy/blob/master/src/extra.js#L68 ), assigning the result to a resolver variable.

Problem is this resolver variable is used inside the resolve function ( https://github.com/lvivski/davy/blob/master/src/extra.js#L89 ), but it will still be undefined since the call to Promise.each is completed yet.

Isn't there something wrong here?

Bower 0.3.0 does not resolve to correct 0.3.0 code

I don't really know why, but after installing davy using Bower and targeting the 0.3.0 version, I have the following code at line 157:

  Promise.reject = function(err) {
    var resolver = new Resolver();
    resolver.reject(err);
    return resolve.promise;
  };

Which does not match the source code for the 0.3.0 version, using Promise.defer() rather than new Resolver(). I don't why but it's problematic since it does not work (because it creates a Resolver with no this.promise and when trying to reject it, it fails)...

Cheers

global.Promise overrides DOM promises

DOM promises are in Chrome behind flag today.

But they are in. I propose to remove global.Promise = ... as this will confuse libs that try to detect native promises.

when?

foo = new Davy
bar = new Davy

Is it possible to make a deferred that exectures when booth foo and bar is fulfilled with Davy?

thx!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.