/// <summary>
        /// Post a task for delayed execution on the specified thread. This function may
        /// be called on any thread. It is an error to request a thread from the wrong
        /// process.
        /// </summary>
        public static bool PostTask(CefThreadId threadId, CefTask task, long delay)
        {
            if (task == null)
            {
                throw new ArgumentNullException("task");
            }

            return(libcef.post_delayed_task(threadId, task.ToNative(), delay) != 0);
        }
Exemple #2
0
 /// <summary>
 /// Post a task for delayed execution on the thread associated with this task
 /// runner. Execution will occur asynchronously. Delayed tasks are not
 /// supported on V8 WebWorker threads and will be executed without the
 /// specified delay.
 /// </summary>
 public bool PostDelayedTask(CefTask task, long delay)
 {
     return(cef_task_runner_t.post_delayed_task(_self, task.ToNative(), delay) != 0);
 }
Exemple #3
0
 /// <summary>
 /// Post a task for execution on the thread associated with this task runner.
 /// Execution will occur asynchronously.
 /// </summary>
 public bool PostTask(CefTask task)
 {
     return(cef_task_runner_t.post_task(_self, task.ToNative()) != 0);
 }