when
Bluebird
when | Bluebird | |
---|---|---|
3 | 9 | |
3,440 | 20,433 | |
-0.2% | - | |
1.8 | 0.0 | |
about 2 years ago | about 1 month ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 or later | 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.
when
-
If you are making a library, take a good look at this list!
looking at you "When"!
-
I made a small library for handling async events in a type-safe fashion
If you're wondering, number 2 has happened to me years ago, and required debugging a Promises library (back when Promises weren't native): https://github.com/cujojs/when/issues/325
-
Introduction to Asynchronous JavaScript
Promises are a popular way of getting rid of callback hell. Originally it was a type of construct introduced by JavaScript libraries like Q and when.js, but these types of libraries became popular enough that promises are now provided natively in ECMAScript 6.
Bluebird
-
Oven: The Company Behind Bun
It might, if the code can be optimized. There are all sorts of reasons why it might not. For example, at one point in time, a switch statement with more than 128 cases could not be optimized.
https://github.com/petkaantonov/bluebird/wiki/Optimization-k...
- what is something you found out way too late. for me it was onclick="history.back();"
-
es6-cheatsheet
Prior to ES6, we used bluebird or Q. Now we have Promises natively:
-
Compiler optimizations that are (or could be) coded against?
For example: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers
-
Rust from 0 to 80% for JavaScript Developers
The standard library is quite barebones so you’ll need to import something else (Think bluebird for JS). You need an executor to run a future. I recommend using https://github.com/tokio-rs/tokio and reading their documentation.
-
When is .then(success, fail) considered an antipattern for promises?
I had a look at the bluebird promise FAQ, in which it mentions that .then(success, fail) is an antipattern. I don't quite understand its explanation as for the try and catch.What's wrong with the following?
-
Mutability of JavaScript
I have not looked into how packages like bluebird does this, but I expect it is similar to the above items I expressed
- a little help using node js with MySQL queries
-
How aync/await works internally?
You can look at the implementation of Bluebird an implementation of Promises that preceded them being available in JS itself.
What are some alternatives?
step - An async control-flow library that makes stepping through logic easy.
p-map - Map over promises concurrently
q - A promise library for JavaScript
async - Async utilities for node and the browser
contra - :surfer: Asynchronous flow control with a functional taste to it
pify - Promisify a callback-style function
ObjectEventTarget - A same behaviour EventTarget prototype, that can work with any object from JavaScript
promise-memoize - Memoize promise-returning functions. Includes cache expire and prefetch.
Javascript State Machine - A javascript finite state machine library
pinkie-promise - Promise ponyfill with pinkie
modern-async - A modern JavaScript tooling library for asynchronous operations using async/await, promises and async generators