Let's say I have an async Method:
private async Task DoSomethingAsync(int value){ await Library.SomethingAwesomeAsync(value);}Now I have an input-control:
<input type="text" @bind="FancyProperty" @bind:after="() => DoSomethingAsync(inputValue)" />This does not give me a warning. But I'd expect I need to write the following:
<input type="text" @bind="FancyProperty" @bind:after="async () => await DoSomethingAsync(inputValue)" />Does anyone know why both ways seem valid?When writing the following inside a normal c# Method I get a warning ("Because this call is not awaitet, execution of the method continues before...."):
Task task = new Task(() => DoSomethingAsync(inputValue));