Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# timer single tick

public class PauseAndExecuter
{
    public async Task Execute(Action action, int timeoutInMilliseconds)
    {
        await Task.Delay(timeoutInMilliseconds);
        action();
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #timer #single #tick
ADD COMMENT
Topic
Name
4+6 =