Comments (3)
Unfortunately I am tied up in other work at the moment. But feel free to base your code off of mine.
Disclaimer - I had not updated this to work with all of lolex's APIs, only the ones I had used. You can see the diffs to check.
from lolex-queue.
Thanks a ton for the answer!
I'm trying to get it to work (setTimeout / tick() ) but it won't do anything.
I'm trying to get it to work, but I'm a bit lost on one thing:
if (typeof timer.interval === "number") {
// TODO:
clock.timerq.pop();
// clock.timers[timer.id].callAt += timer.interval;
clock.timersq.push(timer);
} else {
// delete clock.timers[timer.id];
clock.timersq.pop();
}
why the first pop() there, what is that doing/what's the logic, if you remember at all?
from lolex-queue.
fyi, I got it to work, it was quite a bit of work, but now my code is 10x faster.
my plan long-term is to make a PR gainst lolex with some more changes, but it's going to be some more work
thanks for the help!
from lolex-queue.
Related Issues (1)
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 lolex-queue.