Skip to content

Commit

Permalink
Add Reset to AsyncAutoResetEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
NZSmartie committed Dec 4, 2017
1 parent 1c1c5c8 commit a900f1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/CoAPNet/Utils/AsyncAutoResetEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,13 @@ public void Set()

toRelease?.SetResult(true);
}

public void Reset()
{
lock (_waits)
{
_signaled = false;
}
}
}
}

0 comments on commit a900f1a

Please sign in to comment.