summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/uvloop/handles/timer.pxd
blob: fda23b67c1f3e2987e67a956f77c9ca867836ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cdef class UVTimer(UVHandle):
    cdef:
        method_t callback
        object ctx
        bint running
        uint64_t timeout
        uint64_t start_t

    cdef _init(self, Loop loop, method_t callback, object ctx,
               uint64_t timeout)

    cdef stop(self)
    cdef start(self)
    cdef get_when(self)

    @staticmethod
    cdef UVTimer new(Loop loop, method_t callback, object ctx,
                     uint64_t timeout)