Inheritance: Xilium.CefGlue.CefTask
        public static Task DispatchAsync(this CefTaskRunner @this, Action actionToRun)
        {
            var actiontask = new CefTask_Action(actionToRun);

            @this.PostTask(actiontask);
            return(actiontask.Task);
        }
        public static Task RunAsync(this CefTaskRunner @this, Action actionToRun)
        {
            if (@this.BelongsToCurrentThread)
            {
                actionToRun();
                return(TaskHelper.Ended());
            }

            var actiontask = new CefTask_Action(actionToRun);

            @this.PostTask(actiontask);
            return(actiontask.Task);
        }
        public static Task RunAsync(this CefTaskRunner @this, Action actionToRun)
        {
            if (@this.BelongsToCurrentThread)
            {
                actionToRun();
                return(Task.FromResult <object>(null));
            }

            var actiontask = new CefTask_Action(actionToRun);

            @this.PostTask(actiontask);
            return(actiontask.Task);
        }