question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any chance of adding Promises?

See original GitHub issue

The core aws-sdk dependency added promises to the core, via a “.promise” call appended to each service. Ex:

  var s3 = new AWS.S3();
  s3.listBuckets(params).promise().then();

Any chance of that functionality being added to this library?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mysteroncommented, Apr 25, 2018

@MathieuLoutre to be able to use mock-aws-s3 for tests of the existing code it is necessary to have promise support. Any chance of getting that?

0reactions
MathieuLoutrecommented, Jun 16, 2018

This has been merged now! Let me know how you get on with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the difference between Promise.all and adding ...
A Promise represents the eventual completion (or failure) of an asynchronous operation, and its resulting value. When a Promise is created, the ......
Read more >
Promises chaining - The Modern JavaScript Tutorial
Promises provide a couple of recipes to do that. In this chapter we cover promise ... We can add more asynchronous actions to...
Read more >
JavaScript Promise Tutorial – How to Resolve or Reject ...
First, let us create a generic function that accepts a PokeAPI URL as argument and returns a Promise. If the API call is...
Read more >
Improve async programming with JavaScript promises
Learn what you need to know about async programming with JavaScript promises, including promises in parallel, in this comprehensive guide.
Read more >
Forever Functional: Waiting with Promises - OpenReplay Blog
Since testing for the condition continuously is out of the question, we could add some delay between tests. Using a promise is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found