summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/uvloop/cbhandles.pxd
blob: e594b133128fa7ca2c1321b7faa8a5412ffec5a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cdef class Handle:
    cdef:
        Loop loop
        object context
        bint _cancelled

        str meth_name
        int cb_type
        void *callback
        object arg1, arg2, arg3, arg4

        object __weakref__

        readonly _source_traceback

    cdef inline _set_loop(self, Loop loop)
    cdef inline _set_context(self, object context)

    cdef inline _run(self)
    cdef _cancel(self)

    cdef _format_handle(self)


cdef class TimerHandle:
    cdef:
        object callback
        tuple args
        bint _cancelled
        UVTimer timer
        Loop loop
        object context
        tuple _debug_info
        object __weakref__
        object _when

    cdef _run(self)
    cdef _cancel(self)
    cdef inline _clear(self)