WindowEventLoop
Overview
WindowEventLoop is a class in Aspose.Html FOSS for Python.
Internal task-source scheduler used by Window/BrowsingContext.
This class provides 11 methods for working with WindowEventLoop objects in Python programs.
Available methods include: __init__, cancel, cancel_timer, cleanup, clear_timer_work, dispatch_timer_tasks, drain, register_task_source, schedule, schedule_microtask_checkpoint, schedule_timer.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this WindowEventLoop instance. |
register_task_source(source_name: str) | Calls register_task_source(source_name) on this WindowEventLoop instance. |
schedule(source_name: str, phase: str, token: object | None, callback: Callable[[], None] | None) | Calls schedule(source_name, phase, token, callback) on this WindowEventLoop instance. |
schedule_microtask_checkpoint(callback: Callable[[], None], token: object | None) | Schedule a microtask-checkpoint intent on the event-loop boundary. |
cancel(token: object) | Calls cancel(token) on this WindowEventLoop instance. |
cleanup(token: object) | Calls cleanup(token) on this WindowEventLoop instance. |
drain() | Calls drain on this WindowEventLoop instance. |
schedule_timer(callback: Callable[..., object], args: tuple[object, ...], repeating: bool) → int | Calls schedule_timer(callback, args, repeating) on this WindowEventLoop instance. |
cancel_timer(handle: int) | Calls cancel_timer(handle) on this WindowEventLoop instance. |
clear_timer_work() | Calls clear_timer_work on this WindowEventLoop instance. |
dispatch_timer_tasks(max_tasks: int | None) → int | Calls dispatch_timer_tasks(max_tasks) on this WindowEventLoop instance. |