co
main-thread-scheduling
co | main-thread-scheduling | |
---|---|---|
3 | 8 | |
11,866 | 1,113 | |
- | - | |
0.0 | 8.9 | |
over 3 years ago | 16 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
co
- Main-Thread-Scheduling
-
What's another way to write "for await" that is es6 compatible?
Given that the semantics of async functions are quite similar to generator functions, you can use a library the uses the latter to emulate the former – e.g.: https://github.com/tj/co
-
Promises: async/await vs .then(), how we got here and why I use both
Then after a while, we resorted to generator functions and cogenerators, which made async code feel like its synchronous, at the cost of wrapping it in a generator function, yielding every line and introducing a cogenerator library (for example co) to deal with unwrapping the promises like the following example, where we could just yield a promise whenever we encounter it and pretend that the yield does not exist on that line of code.
main-thread-scheduling
-
What is INP and why you should care
During my research for this post, I discovered main-thread-scheduling, a JavaScript task scheduler developed by Antonio Stoilkov that focuses on helping you improve perceived page performance, and therefore, your INP scores. It uses isInputPending() if available, but provides scheduling functionality for all browsers. Personally, I haven’t had a use case to test this just yet, but at first glance, it’s currently maintained and could be worth a try.
-
Main-Thread-Scheduling
It's done — https://github.com/astoilkov/main-thread-scheduling/commit/0.... Thanks.
A little thing but a great improvement. I'm now wondering why I did that.
-
Better npm search proposal
Exclude bots. Bots activity should be excluded, otherwise, the search will probably get a lot worse. Also, it opens an opportunity for easy manipulation. For example, a version bump by a bot shouldn't count at all. Similar to how GitHub's repo contributions page work.
-
I've made my app's search fast and open-sourced the solution
The library — https://github.com/astoilkov/main-thread-scheduling
- Main thread scheduling — faster apps using a simple API instead of Web Workers
-
Consistently responsive apps while staying on the main thread
For the past 11 months, I've been working on a very easy-to-use alternative to Web Workers. It's a way to schedule long-running, heavy tasks on the main thread. React has such implementation internally. Browsers are planning to add such functionality in the future.
What are some alternatives?
suspend - Callback-free control flow for Node using ES6 generators.
promise-workers
bluebird-co - A set of high performance yield handlers for Bluebird coroutines
dayschedule-widget - Appointment scheduling widget to embed the booking calendar on your website for 1:1, round-robin and group bookings with Google meet, Zoom and MS Teams integrations
iterum - Handling iterables like lazy arrays.
worktank - A simple isomorphic library for executing functions inside WebWorkers or Node Threads pools.
promise-breaker - Helps you write libraries that accept both promises and callbacks.
talk - Issues and discussions for the notes app, Nota.
OF - 🍬 Promise wrapper with sugar 🍬
npm-search - 🗿 npm ↔️ Algolia replication tool :skier: :snail: :artificial_satellite:
Simple-Series-Parallel - A minimalist utility module for running async functions in series or parallel
Fuse - Lightweight fuzzy-search, in JavaScript