mitranim / posterus Goto Github PK
View Code? Open in Web Editor NEWComposable async primitives with cancelation, control over scheduling, and coroutines. Superior replacement for JS Promises.
Composable async primitives with cancelation, control over scheduling, and coroutines. Superior replacement for JS Promises.
If I just install and import { Future } from posterus, I can't actually use it. I get an error that complains future.settle is not a function. Looking at the future object the methods are all one letter. I checked out your gulp file and it uses uglify with mangle: false, but apparently that still mangles your methods. I would think removing the uglify would be better.
Here's an example: in Bluebird, cancelation doesn't propagate upstream. After registering onCancel in a promise constructor, you have to call .cancel() on that exact promise object. Calling .cancel() in any child promise created with .then() or .catch() will not abort the work, rendering the feature useless for the most common use case!
This is not true at all. See for example this test: https://github.com/petkaantonov/bluebird/blob/master/test/mocha/cancel.js#L172-L195 Read that entire file to see how many use cases promise cancellation can work with.
I understand that it's probably a very big deal to be able to cancel. But can you show and prove it with a concrete example?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.