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: objectNone, callback: Callable[[], None]
`schedule_microtask_checkpoint(callback: Callable[[], None], token: objectNone)`
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: intNone)→int`

انظر أيضاً

 العربية