Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another
Code.CanBeCanceled() assertion. Useful for methods that require valid cancellation token.
WaitForCancellationAsync() extension method. Safely waits for cancellation token without throwing an OperationCanceledException.
TimeoutHelper. By convention, all FW methods accepts only one special value for infinite timeout: Timeout.InfiniteTimespan (-1 ms). Methods in TimespanHelper allows to replace negative (or default) values with this special value and to apply upper limit for timeout values.
WithTimeout() methods. Allows to await for task with timeout. RunWiithTimeout() adds cancellation of running task on timeout.