WindowEventLoop

WindowEventLoop

Tổng quan

WindowEventLoop là một lớp trong Aspose.Html FOSS cho Python.

Bộ lập lịch nguồn tác vụ nội bộ được sử dụng bởi Window/BrowsingContext.

Lớp này cung cấp 11 phương thức để làm việc với các đối tượng WindowEventLoop trong các chương trình Python. Các phương thức khả dụng bao gồm: __init__, cancel, cancel_timer, cleanup, clear_timer_work, dispatch_timer_tasks, drain, register_task_source, schedule, schedule_microtask_checkpoint, schedule_timer. Tất cả các thành viên công khai đều có thể truy cập bởi bất kỳ ứng dụng Python nào sau khi cài đặt gói Aspose.Html FOSS cho Python.

Phương thức

Chữ kýMô tả
__init__()Calls init trên thể hiện WindowEventLoop này.
register_task_source(source_name: str)Gọi register_task_source(source_name) trên thể hiện WindowEventLoop này.
`schedule(source_name: str, phase: str, token: objectNone, callback: Callable[[], None]
`schedule_microtask_checkpoint(callback: Callable[[], None], token: objectNone)`
cancel(token: object)Gọi cancel(token) trên đối tượng WindowEventLoop này.
cleanup(token: object)Gọi cleanup(token) trên đối tượng WindowEventLoop này.
drain()Gọi drain trên đối tượng WindowEventLoop này.
schedule_timer(callback: Callable[..., object], args: tuple[object, ...], repeating: bool) → intGọi schedule_timer(callback, args, repeating) trên đối tượng WindowEventLoop này.
cancel_timer(handle: int)Gọi cancel_timer(handle) trên đối tượng WindowEventLoop này.
clear_timer_work()Gọi clear_timer_work trên đối tượng WindowEventLoop này.
`dispatch_timer_tasks(max_tasks: intNone)→int`

Xem thêm

 Tiếng Việt