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`

ראה גם

 עברית