Jump to content

Multiton: Difference between revisions

m
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Minor tidy)
Line 220:
 
Although all Wren code runs within the context of a fiber (of which there can be thousands) only one fiber can run at a time and so the language is effectively single threaded. Thread-safety is therefore never an issue.
<syntaxhighlight lang="ecmascriptwren">import "./dynamic" for Enum
 
var MultitonType = Enum.create("MultitonType", ["zero", "one", "two"])
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.