Comments (4)
Here's a working version made by a friend: const asyncFlow = (...fns) => x => fns.reduce((v, f) => v.then(f), Promise.resolve(x))
from futil-js.
Ramda has stuff like pipeP and composeP, but interestingly they're considering removing it:
from futil-js.
This is covered by #411
It also allows for automatic Promise.all/promiseProps calls so you can generally just flow together anything async and it will work without thinking about promises. flowAsyncDeep
is wonderfully magical. It also only becomes async if necessary, so you can use if safely in sync scenarios without needing an extra await.
from futil-js.
flowAsync
is publishing in 1.74.0 right now 😄
from futil-js.
Related Issues (20)
- TypeError in `autoLabelOption`
- Add `compactMap` HOT 7
- Add `omitNil` (and friends)
- export words to regex functions
- improve any/all words regex match HOT 2
- mergeOverAll should merge arrays
- Additional `lens` formats HOT 1
- Lens function consistency
- Better currying for `logic` methods
- mergeAllArrays appears to be broken HOT 1
- Make domLens functions more usable
- Overhaul webpack build HOT 2
- Logic functions behave unpredictably with `undefined` as predicate HOT 2
- Make F.diff friendler for array item removals
- Add typeOf function HOT 2
- Add flattenProp HOT 1
- cascade zero value problem HOT 3
- move to futil
- Full promises async/await functionality to lodash HOT 4
- Generate readme in CI
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 futil-js.