Comments (5)
Promises are not properly supported no. They should run but will not be visualised correctly.
from loupe.
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.
Works, but not show in task queue
Promise.resolve({ then: function() {
console.log('promise');
}});
from loupe.
Following code not running:
pr = new Promise(function(resolve, reject) {
setTimeout(() => reject('bzzz'), 5000);
});
pr.then(
result => alert(result),
error => alert(error)
);
from loupe.
@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)
- gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
- Code Edit Bug HOT 2
- Support for async / await and promises HOT 5
- DOM manipulation
- Question, not issue :) HOT 8
- Clear Timeout is not Working as Expected Registered timeout executes even after HOT 2
- Not working with certain functions HOT 3
- Instructions going into call stack.
- Macrotask and microtask support?
- Stack not clear yet Event loop kicks in HOT 1
- Please provide "Fragment to fragment" exmple
- promise
- Add A Readme HOT 2
- License
- Don't work with IIFE
- can't edit the code to run HOT 2
- Code Edit issue HOT 9
- Cannot edit code, runs only template HOT 4
- different results for setTimeout HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loupe.