Hudl.Mjolnir.Tests.Command.Attribute.TestThrowingImplementation.InvokeGenericTaskWithRunAndSleep C# (CSharp) Method

InvokeGenericTaskWithRunAndSleep() public method

public InvokeGenericTaskWithRunAndSleep ( ) : Task
return Task
        public Task<object> InvokeGenericTaskWithRunAndSleep()
        {
            return Task.Run((Func<object>)(() =>
            {
                Thread.Sleep(100);
                throw _exceptionToThrow;
            }));
        }