erg/crates/erg_compiler/lib/pystd/threading.d.er
2023-01-15 12:03:19 +09:00

23 lines
621 B
Python

.Thread!: ClassType
.Thread!.name: Str
.Thread!.daemon: Bool
.Thread!.ident: Nat or NoneType # TODO: Pos or NoneType
.Thread!.native_id: Nat or NoneType
.Thread!.start!: (self: .Thread!) => NoneType
.Thread!.run!: (self: .Thread!) => NoneType
.Thread!.join!: (self: .Thread!, timeout := Nat or NoneType) => NoneType
.Thread!.is_alive: (self: .Thread!) -> Bool
.Local! = 'local': ClassType
.Lock!: ClassType
.RLock!: ClassType
.Condition!: ClassType
.Semaphore!: ClassType
.BoundedSemaphore!: ClassType
.Event!: ClassType
.Timer!: ClassType
.Barrier!: ClassType
.BrokenBarrierError: ClassType
.active_count!: () => Nat