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.

[Login] Promise-based methods don't return subscription list

See original GitHub issue

I might be missing something, but I noticed that when using the login* methods, the new Promise support doesn’t expose the list of subscriptions, like the callbacks do. Is there a way to use Promises and get both the credentials and subscription list after a successful login?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lostintangentcommented, Apr 4, 2017

That proposal sounds good to me!

0reactions
amarzaverycommented, Apr 5, 2017

Closing this issue as the PR has been merged and new version of ms-rest-azure: “2.1.0” has been published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to return a function as subscription from inside of a promise
Subscription is being returned by an inbuilt function which I have no control of and I'm more comfortable with promises. Can you suggest...
Read more >
Promise - The Modern JavaScript Tutorial
A promise is a special JavaScript object that links the “producing code” and the “consuming code” together. In terms of our analogy: this...
Read more >
Javascript: How to access the return value of a Promise object
It's really important to note that the Promise object doesn't return a value, it resolves a value via the then() method. It is...
Read more >
Promise.all() - JavaScript - MDN Web Docs
The Promise.all() method takes an iterable of promises as input and returns a single Promise. This returned promise fulfills when all of the ......
Read more >
How do I make a JavaScript promise return something other ...
Promises don't "return" values, they pass them to a callback (which you supply with .then()). The spec simply sounds confused to me. It's...
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