Skip to content

Instantly share code, notes, and snippets.

@Buildstarted
Created January 20, 2012 19:33
Show Gist options
  • Save Buildstarted/1649144 to your computer and use it in GitHub Desktop.
Save Buildstarted/1649144 to your computer and use it in GitHub Desktop.
Perform.This() sample usage
//write this to the once every 5 seconds for 5 iterations
Perform.This(() => {
Console.WriteLine(DateTime.UtcNow);
})
.Every(TimeSpan.FromSeconds(5))
.For(5)
.Start();
//write to the console in 10 seconds
Perform.This(() => {
Console.WriteLine(DateTime.UtcNow);
})
.In(TimeSpan.FromSeconds(10))
.Start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment