WindowEventLoop
WindowEventLoop
Przegląd
WindowEventLoop jest klasą w Aspose.Html FOSS dla Python.
Wewnętrzny harmonogram zadań źródłowych używany przez Window/BrowsingContext.
Ta klasa udostępnia 11 metod do pracy z obiektami WindowEventLoop w programach Python. Dostępne metody to: __init__, cancel, cancel_timer, cleanup, clear_timer_work, dispatch_timer_tasks, drain, register_task_source, schedule, schedule_microtask_checkpoint, schedule_timer. Wszystkie publiczne elementy są dostępne dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.Html FOSS dla Python.
Metody
| Sygnatura | Opis |
|---|---|
__init__() | Calls init na tej instancji WindowEventLoop. |
register_task_source(source_name: str) | Wywołuje register_task_source(source_name) na tej instancji 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) | Wywołuje cancel(token) na tej instancji WindowEventLoop. |
cleanup(token: object) | Wywołuje cleanup(token) na tej instancji WindowEventLoop. |
drain() | Wywołuje drain na tej instancji WindowEventLoop. |
schedule_timer(callback: Callable[..., object], args: tuple[object, ...], repeating: bool) → int | Wywołuje schedule_timer(callback, args, repeating) na tej instancji WindowEventLoop. |
cancel_timer(handle: int) | Wywołuje cancel_timer(handle) na tej instancji WindowEventLoop. |
clear_timer_work() | Wywołuje clear_timer_work na tej instancji WindowEventLoop. |
| `dispatch_timer_tasks(max_tasks: int | None)→int` |