WindowEventLoop
WindowEventLoop
نظرة عامة
WindowEventLoop هي فئة في Aspose.Html FOSS لـ Python.
مجدول مصدر المهام الداخلي يُستخدم من قبل Window/BrowsingContext.
توفر هذه الفئة 11 طريقة للعمل مع كائنات WindowEventLoop في برامج Python. تشمل الطرق المتاحة: __init__, cancel, cancel_timer, cleanup, clear_timer_work, dispatch_timer_tasks, drain, register_task_source, schedule, schedule_microtask_checkpoint, schedule_timer. جميع الأعضاء العامة متاحة لأي تطبيق Python بعد تثبيت حزمة Aspose.Html FOSS لـ Python.
الطرق
| التوقيع | وصف |
|---|---|
__init__() | Calls init على هذه المثيلة WindowEventLoop. |
register_task_source(source_name: str) | يستدعي register_task_source(source_name) على هذه المثيلة 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) | يستدعي cancel(token) على هذه المثيلة من WindowEventLoop. |
cleanup(token: object) | يستدعي cleanup(token) على هذه المثيلة من WindowEventLoop. |
drain() | يستدعي drain على هذه المثيلة من WindowEventLoop. |
schedule_timer(callback: Callable[..., object], args: tuple[object, ...], repeating: bool) → int | يستدعي schedule_timer(callback, args, repeating) على هذه المثيلة من WindowEventLoop. |
cancel_timer(handle: int) | يستدعي cancel_timer(handle) على هذا الكائن WindowEventLoop. |
clear_timer_work() | يستدعي clear_timer_work على هذا الكائن WindowEventLoop. |
| `dispatch_timer_tasks(max_tasks: int | None)→int` |