# OHOS::AbilityEventHandler - [Overview](#section1945428263165632) - [Summary](#section556883900165632) - [Public Member Functions](#pub-methods) - [Static Public Member Functions](#pub-static-methods) ## **Overview** **Related Modules:** [AbilityKit](AbilityKit.md) **Description:** Declares functions for performing operations during inter-thread communication, including running and quitting the event loop of the current thread and posting tasks to an asynchronous thread. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions

Function

Description

Run ()

void

Starts running the event loop of the current thread.

PostTask (const Task &task)

void

Posts a task to an asynchronous thread.

PostQuit ()

void

Quits the event loop of the current thread.

## Static Public Member Functions

Function

Description

GetCurrentHandler ()

static AbilityEventHandler *

Obtains the event handler of the current thread.