mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
Rename dir: compiler
-> crates
This commit is contained in:
parent
e1004b538d
commit
a127564b31
221 changed files with 17 additions and 19 deletions
23
crates/erg_compiler/lib/pystd/threading.d.er
Normal file
23
crates/erg_compiler/lib/pystd/threading.d.er
Normal file
|
@ -0,0 +1,23 @@
|
|||
.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
|
Loading…
Add table
Add a link
Reference in a new issue