Skip to content

Instantly share code, notes, and snippets.

@cajones
Created July 19, 2012 13:38
Show Gist options
  • Save cajones/3143952 to your computer and use it in GitHub Desktop.
Save cajones/3143952 to your computer and use it in GitHub Desktop.
Async Specification
using System;
using System.Threading;
namespace Testing
{
public class AsyncSpecification
{
private static readonly AutoResetEvent signal = new AutoResetEvent(false);
protected static void Wait(TimeSpan timeout)
{
signal.WaitOne(timeout);
}
protected static void Done()
{
signal.Set();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment