smartprocure / futil-js

F(unctional) util(ities). Resistance is futile.
https://smartprocure.github.io/futil-js/
MIT License
991 stars 68 forks source link

Full promises async/await functionality to lodash #400

Closed anodynos closed 1 year ago

anodynos commented 1 year ago

Any chance of implementing something that provides full promises & async/await functionality to lodash?

I'm getting ideas from things like promdash or Aigle lodash mixin (read more here that unfortunately aren't that mainstream for serious adoption....

daedalus28 commented 1 year ago

Hi there! Thanks for the suggestion and I'm always happy to see new faces.

It's definitely on the radar - we've discussed it in #107 and #194. The flowAsync and some variations have already popped up in a few places - it's about time we formalize it into futil. We also have some upcoming work around our tree API to unify sync/async where this will be necessary.

Stay tuned - more to come here 👍

daedalus28 commented 1 year ago

Hi @anodynos! You may want to check out https://github.com/smartprocure/futil-js/pull/411. flowAsync and flowAsyncDeep should address most use cases. I'd love to get feedback from as many users as possible on this.

Specifically compared to the links you shared (promdash, Aigle, etc), F.flowAsync has some major advantages:

daedalus28 commented 1 year ago

1.74 is live on npm! Happy to answer any usage questions you might have @anodynos

anodynos commented 1 year ago

Thanks @daedalus28 - I will give it a try on 1st chance and get back to you!