How do I return a value from an async function in c#
I’m getting REST data from a website using c# and I’d like to return a value from a function call. But I need to use httpClient.SendAsync, so the function has to be public async. But I’m getting an error “The return type of an async method must be void. Is there anyway of getting around this?