Skip to content

module threading

Source: stdlib/threading.codon


Lock @tuple Class is named tuple (cannot write fields)

Fields

p: cobj

Magic methods

__new__()

__enter__(self)

__exit__(self)

Methods

acquire(self, block: bool = True, timeout: float = -1.0)

release(self)


RLock @tuple Class is named tuple (cannot write fields)

Fields

p: cobj

Magic methods

__new__()

__enter__(self)

__exit__(self)

Methods

acquire(self, block: bool = True, timeout: float = -1.0)

release(self)


active_count()


get_native_id()


get_ident()