asked on
private async void ToolStripPlay_Click(object sender, EventArgs e)
{
var task = Task.Run(() => this.Play()).ConfigureAwait(continueOnCapturedContext: false);
await task;
}
private void ToolStripPlay_Click(object sender, EventArgs e)
{
var task = Task.Run(() => this.Play()).ConfigureAwait(continueOnCapturedContext: false);
}
Is there any benefit to using async in this case?