📅  最后修改于: 2022-03-11 14:48:45.501000             🧑  作者: Mango
public class PauseAndExecuter
{
public async Task Execute(Action action, int timeoutInMilliseconds)
{
await Task.Delay(timeoutInMilliseconds);
action();
}
}