Ejemplo n.º 1
0
 /// <summary>
 /// Post a task for execution on the thread associated with this task runner.
 /// Execution will occur asynchronously.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_task_capi.h">cef/include/capi/cef_task_capi.h</see>.
 /// </remarks>
 public bool PostTask(CfxTask task)
 {
     return 0 != CfxApi.cfx_task_runner_post_task(NativePtr, CfxTask.Unwrap(task));
 }
Ejemplo n.º 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>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_task_capi.h">cef/include/capi/cef_task_capi.h</see>.
 /// </remarks>
 public bool PostDelayedTask(CfxTask task, long delayMs)
 {
     return 0 != CfxApi.cfx_task_runner_post_delayed_task(NativePtr, CfxTask.Unwrap(task), delayMs);
 }