Ejemplo n.º 1
0
        public void OnCompleted(Action continuation)
        {
            if (continuation == null)
            {
                throw new ArgumentNullException("continuation");
            }

            TaskAwaiter.HandleOnCompleted(task, continuation, true, true);
        }
Ejemplo n.º 2
0
            public void UnsafeOnCompleted(Action continuation)
            {
                if (continuation == null)
                {
                    throw new ArgumentNullException("continuation");
                }

                TaskAwaiter.HandleOnCompleted(task, continuation, continueOnSourceContext, false);
            }
Ejemplo n.º 3
0
            public void UnsafeOnCompleted(Action continuation)
            {
                if (continuation == null)
                {
                    throw new ArgumentNullException("continuation");
                }

                TaskAwaiter.HandleOnCompleted(task, continuation, continueOnSourceContext, instanceReference, thisSetter);
            }