Giter Site home page Giter Site logo

Promises are not supported about loupe HOT 5 OPEN

latentflip avatar latentflip commented on July 23, 2024 2
Promises are not supported

from loupe.

Comments (5)

latentflip avatar latentflip commented on July 23, 2024 2

Promises are not properly supported no. They should run but will not be visualised correctly.

from loupe.

fntneves avatar fntneves commented on July 23, 2024

I also can't execute this code, even on Chrome.

My intention is to play with setTimeout and Promises. This is a very interesting educational tool!

from loupe.

splincode avatar splincode commented on July 23, 2024

Works, but not show in task queue

Promise.resolve({ then: function() {
    console.log('promise');
}});

from loupe.

AdamDemirel avatar AdamDemirel commented on July 23, 2024

Following code not running:

pr = new Promise(function(resolve, reject) {
    setTimeout(() => reject('bzzz'), 5000);
});

pr.then(
    result => alert(result),
    error => alert(error)
);

from loupe.

G-Rath avatar G-Rath commented on July 23, 2024

@latentflip would be required to support them? I've not actually been able to get Promises running at all.

I'm interested in doing a little lighting talk at my work about the event loop, and would love to use this to show off some things, so ideally if possible I'd love to get async/await & Promises working.

async/await is obviously a whole other kettle of fish,m and I don't entirely know if it'd be possible, but it'd be great if I could get promises at least somewhat working.

Are there any pointers you could provide? The code is very old, so it's proving rather hard to even find where things are happening, and hence anything info you could provide would be a boon :D

from loupe.

Related Issues (20)

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.