WindowEventLoop
WindowEventLoop
Prezentare generală
WindowEventLoop este o clasă în Aspose.Html FOSS pentru Python.
Planificator intern de surse de sarcini utilizat de Window/BrowsingContext.
Această clasă furnizează 11 metode pentru lucrul cu obiecte WindowEventLoop în programe Python. Metodele disponibile includ: __init__, cancel, cancel_timer, cleanup, clear_timer_work, dispatch_timer_tasks, drain, register_task_source, schedule, schedule_microtask_checkpoint, schedule_timer. Toți membrii publici sunt accesibili oricărei aplicații Python după instalarea pachetului Aspose.Html FOSS pentru Python.
Metode
| Semnătură | Descriere: |
|---|---|
__init__() | Calls init pe această instanță WindowEventLoop. |
register_task_source(source_name: str) | Apelează register_task_source(source_name) pe această instanță WindowEventLoop. |
| `schedule(source_name: str, phase: str, token: object | None, callback: Callable[[], None] |
| `schedule_microtask_checkpoint(callback: Callable[[], None], token: object | None)` |
cancel(token: object) | Apelează cancel(token) pe această instanță WindowEventLoop. |
cleanup(token: object) | Apelează cleanup(token) pe această instanță WindowEventLoop. |
drain() | Apelează drain pe această instanță WindowEventLoop. |
schedule_timer(callback: Callable[..., object], args: tuple[object, ...], repeating: bool) → int | Apelează schedule_timer(callback, args, repeating) pe această instanță WindowEventLoop. |
cancel_timer(handle: int) | Apelează cancel_timer(handle) pe această instanță WindowEventLoop. |
clear_timer_work() | Apelează clear_timer_work pe această instanță WindowEventLoop. |
| `dispatch_timer_tasks(max_tasks: int | None)→int` |