/// <summary> /// Post a task for delayed execution on the specified thread. Equivalent to /// using CfrTaskRunner.GetForThread(threadId).PostDelayedTask(task, /// delay_ms). /// </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 static bool PostDelayedTask(CfxThreadId threadId, CfrTask task, long delayMs) { var call = new CfxRuntimePostDelayedTaskRenderProcessCall(); call.threadId = (int)threadId; call.task = CfrObject.Unwrap(task); call.delayMs = delayMs; call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection); return(call.__retval); }
/// <summary> /// Post a task for delayed execution on the specified thread. Equivalent to /// using CfrTaskRunner.GetForThread(threadId).PostDelayedTask(task, /// delay_ms). /// </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 static bool PostDelayedTask(CfxThreadId threadId, CfrTask task, long delayMs) { var call = new CfxRuntimePostDelayedTaskRenderProcessCall(); call.threadId = (int)threadId; call.task = CfrObject.Unwrap(task); call.delayMs = delayMs; call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection); return call.__retval; }