For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
ThreadRole
struct ThreadRole
Implemented traitsβ
AnyType,
Copyable,
Enum,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
comptime membersβ
CONSUMERβ
comptime CONSUMER = ThreadRole(1)
PRODUCERβ
comptime PRODUCER = ThreadRole(0)
PRODUCER_CONSUMERβ
comptime PRODUCER_CONSUMER = ThreadRole(2)
Methodsβ
valueβ
write_toβ
def write_to[W: Writer](self, mut writer: W)