Example #1
0
        public void JittingFailsWithInvalidProgramException()
        {
            var completedTask = Task.FromResult(1);

            var helper = new RyuJitBugHelper(completedTask);

            helper.AwaitTaskCompletion().Wait();
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.Write("Awaiting task...");

            var completedTask = Task.FromResult(1);
            var helper        = new RyuJitBugHelper(completedTask);

            helper.AwaitTaskCompletion().Wait();

            Console.WriteLine("done");
        }