Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Threading.Tasks;
using System.Windows.Input;
class AsyncCommand : ICommand {
public Boolean CanExecute(Object parameter = null) => !IsRunning;
public event EventHandler CanExecuteChanged = delegate { };
public async void Execute(Object parameter = null) {