-
Notifications
You must be signed in to change notification settings - Fork 93
Callback promises migration #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
moved few functionalities from Async.js to Utils.js
Updated the test cases to utilise Promise instead of callbacks
return [new Error("Didn't get a Pivot report back from Splunk"), response]; | ||
} | ||
}).catch((err) => { | ||
// TODO: analyze use of response argument and change accordingly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't worry about this too much, this would be a new scenario that we weren't handling previously - omitting the response seems perfectly fine to me
Examples within README file are updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great, thanks for addressing all of those comments 🚀
response_timeout
' parameter which enables user to specify the timeout for a particular API call.