DEV Community

loading...

Discussion on: Truth OR Dare | Let's FUN

Collapse
winstonpuckett profile image
Winston Puckett

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?

Thread Thread
winstonpuckett profile image
Winston Puckett

Or is it how do you make a synchronous or async request?

Thread Thread
itsmukulmishra profile image
Mukul Mishra Author

exactly async call

Thread Thread
winstonpuckett profile image
Winston Puckett

Without looking it up, I think it's:

await HttpClient.GetAsync(message);

// And possibly synchronously:
HttpClient.Get(message);
Enter fullscreen mode Exit fullscreen mode

But without looking it up, I'm not sure if Get() is part of the interface 🤔

Thread Thread
itsmukulmishra profile image
Mukul Mishra Author

HttpClient.GetAsync(message)
this one is Async and i also dont think .get() is still operational.