-
Notifications
You must be signed in to change notification settings - Fork 65
Promise interface? #58
Comments
Hi Eric, thanks for your report. I'm looking into your issue with using https://github.com/sindresorhus/pify . Will discuss with the team about a promise interface. At first glance, it sounds like a great feature enhancement. |
Hi Eric, With regard to your issue using https://github.com/sindresorhus/pify, we use Callback style: ld_client.variation.("myflag", user, false, (err, show_feature) => {
...
} Wrapped in pify: pify(ld_client.variation.bind(ld_client))("myflag", user, false).then(show_feature => {
...
}) Link to related issue in pify repo: |
Hi @ericclemmons , I wanted to let you know we finally released version 3.1.0 in which asynchronous methods return a Let me know if you have any questions or feedback. :) Best, |
Hi @apucacao,
Thank you. |
@yamoo I just released version 3.3.1 which includes a fix for the bug you found. Thanks for reporting it and sorry for the inconvenience! |
@apucacao Thank you for the quick response! I could confirm it was fixed by upgrading to v3.3.1. |
avoid race condition by serializing all Redis updates
I haven't been able to use https://github.com/sindresorhus/pify successfully with this library (
this
binding issues?), but I was wondering if, in absence of a callback, method calls could return a Promise so that we can useasync
&await
.Sounds cool, right!? ;)
The text was updated successfully, but these errors were encountered: