We're a place where coders share, stay up-to-date and grow their careers.
C# (are we allowed to pick a specific language?)
How do you make http call unblockable in C# like javascript ajax which has option async=false/true
Hmmm... I don't know. Could I get a definition of unblockable? Is it the same as how to do you wait for the asynchronous call to complete before moving on to the next line of code?
Or is it how do you make a synchronous or async request?
exactly async call
Without looking it up, I think it's:
await HttpClient.GetAsync(message); // And possibly synchronously: HttpClient.Get(message);
But without looking it up, I'm not sure if Get() is part of the interface 🤔
HttpClient.GetAsync(message) this one is Async and i also dont think .get() is still operational.
C# (are we allowed to pick a specific language?)
How do you make http call unblockable in C# like javascript ajax which has option async=false/true
Hmmm... I don't know. Could I get a definition of unblockable? Is it the same as how to do you wait for the asynchronous call to complete before moving on to the next line of code?
Or is it how do you make a synchronous or async request?
exactly async call
Without looking it up, I think it's:
But without looking it up, I'm not sure if Get() is part of the interface 🤔
HttpClient.GetAsync(message)
this one is Async and i also dont think .get() is still operational.