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.

v5 Request - Adopt Async/Task based requests

See original GitHub issue

Issue Type

  • Feature Request

Describe the issue Currently all calls to do requests with OBS are synchronous not making use of Task (and potentially async), given there has been a large push to move towards this paradigm by a lot of vendors who can do potentially long running tasks, i.e IO, Network, API, DB calls etc it would be good if we could provide async compatible requests.

Versions OBS Version: N/A OBS WebSocket Version: 5.x OBS WebSocket Dotnet (this library) Version: 5.x OS: N/A

Additional context There was a PR offered for the v4 branch which included these changes which allowed for mainly non blocking requests to OBS which helps greatly with UI facing applications, unfortunately that PR never made it through, but it would be great if the same approaches could be rolled into the v5 branch.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jeieacommented, Oct 18, 2022

How about this?

1reaction
grofitcommented, Sep 6, 2022

However you spin it, bare minimum its going to need to change the signatures of almost all request methods from T Whatever() to Task<T> Whatever() and all the corresponding methods related to it as well as cancellation token parts as well.

So just to make sure we are on the same page this will ultimately have cascading changes everywhere, but the PR (assuming im the one who does it) will JUST be related to this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AsyncTask | Android Developers
Stay organized with collections Save and categorize content based on your ... AsyncTask guarantees that all callback calls are synchronized to ensure the ......
Read more >
How to use AsyncTask in HTTP Request (RESTful web ...
Simply put your network operation inside an AsyncTask, class HTTPAsyncTask extends AsyncTask<String, Void, Boolean> { @Override protected ...
Read more >
Common C# async and await misconceptions
So I just said async doesn't require multiple threads. That means unless you mix in multi-threading you can't have concurrency right? Wrong.
Read more >
Task — Elixir v1.12.3
If you are using async tasks, you must await a reply as they are always sent. If you are not expecting a reply,...
Read more >
Use managed identity with an application - Azure Service ...
Service Fabric applications can leverage managed identities to access other Azure resources which support Azure Active Directory-based ...
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