# Class TCefTaskRunnerRef

Description
Hierarchy
Methods

## Unit

uCEFTaskRunner

## Declaration

`type TCefTaskRunnerRef = class(TCefBaseRefCountedRef, ICefTaskRunner)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefTaskRunnerRef

## Overview

### Methods

Protected | `function IsSame(const that: ICefTaskRunner): Boolean;`
Protected | `function BelongsToCurrentThread: Boolean;`
Protected | `function BelongsToThread(threadId: TCefThreadId): Boolean;`
Protected | `function PostTask(const task: ICefTask): Boolean;`
Protected | `function PostDelayedTask(const task: ICefTask; delayMs: Int64): Boolean;`
Public | `class function UnWrap(data: Pointer): ICefTaskRunner;`
Public | `class function GetForCurrentThread: ICefTaskRunner;`
Public | `class function GetForThread(threadId: TCefThreadId): ICefTaskRunner;`

## Description

### Methods

Protected | `function IsSame(const that: ICefTaskRunner): Boolean;`
This item has no description. Showing description inherited from ICefTaskRunner.IsSame. Returns true (1) if this object is pointing to the same task runner as |that| object.

Protected | `function BelongsToCurrentThread: Boolean;`
This item has no description. Showing description inherited from ICefTaskRunner.BelongsToCurrentThread. Returns true (1) if this task runner belongs to the current thread.

Protected | `function BelongsToThread(threadId: TCefThreadId): Boolean;`
This item has no description. Showing description inherited from ICefTaskRunner.BelongsToThread. Returns true (1) if this task runner is for the specified CEF thread.

Protected | `function PostTask(const task: ICefTask): Boolean;`
This item has no description. Showing description inherited from ICefTaskRunner.PostTask. Post a task for execution on the thread associated with this task runner. Execution will occur asynchronously.

Protected | `function PostDelayedTask(const task: ICefTask; delayMs: Int64): Boolean;`
This item has no description. Showing description inherited from ICefTaskRunner.PostDelayedTask. 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.

Public | `class function UnWrap(data: Pointer): ICefTaskRunner;`
Returns a ICefTaskRunner instance using a PCefTaskRunner data pointer.

Public | `class function GetForCurrentThread: ICefTaskRunner;`
Returns the task runner for the current thread. Only CEF threads will have task runners. An NULL reference will be returned if this function is called on an invalid thread.

Public | `class function GetForThread(threadId: TCefThreadId): ICefTaskRunner;`
Returns the task runner for the specified CEF thread.

Generated by PasDoc 1.0.4.