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.

Feedback Requested: Synchronous Methods

See original GitHub issue

Hi Folks,

Looking for feedback on the introduction of synchronous methods. We’ve received feedback from many of you that synchronous methods are simpler to integrate with and use. To that end we are considering providing synchronous interfaces (interfaces that do no leverage callbacks) to return results to you. Since many of operations involve network operations or cross process calls (invoking the authentication broker via bound service and/or Account Manager). We will annotate these operations with @WorkerThread annotation. In addition if we detect that they are being invoked from the UI thread we will immediately throw an IllegalStateException.

These methods will be blocking calls…

I’d prefer not to add “Sync” to the end of method names, but if you have a suggestion on naming and or related to additional annotations please pass it along.

thanks

shane

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shoatmancommented, Jun 14, 2019

I think I like that the best in terms of not colliding with other existing async/blocking semantics. Thanks @joshfriend

0reactions
rpdomecommented, Oct 28, 2019

Introduced in MSAL v1.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feedback - Instant(synchronous) Load methods. In addition to ...
My workaround is an AssetPreloader class that loads every assets required by feature x, and cache in memory. Then I just query the ......
Read more >
Synchronous I/O antipattern - Microsoft Learn
The application requires a response from a request. The application uses a library that only provides synchronous methods for I/O. An external library ......
Read more >
Synchronous vs. Asynchronous Communication: How to Use ...
Provide feedback. But some of the synchronous methods can also be asynchronous or hybrids. While direct messages and text messages can be done...
Read more >
Synchronous Requests | Search Ads 360 API
The response to a synchronous request is a report object. If the request successfully validated, the first few properties in the object contain...
Read more >
Synchronous and asynchronous teacher electronic feedback ...
Expanding on an earlier study by Ene and Upton (2014), this corpus-based, mixed-methods study fills in a gap by (a) analyzing TEF from...
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