Here is the code I'd like to run:
public async String products()
{
string res = await client.GetStringAsync(apiUrl+"/allItems.php");
return res;
}
But I get an error like this:
The return type of an async method must be void, Task, Task, a task-like type, IAsyncEnumerable, or IAsyncEnumerator
StripeTerminal
C:\Users\Foxx\Documents\StripeTerminal\StripeTerminal\Form1.cs
What do I need to do to fix this?