3 ms·
Right now, you'd have to use OS-specific threading APIs for that (via foreign function declarations). I'm planning to add threading support to the standard libr
by nickmqb 8y ago
Right now, you'd have to use OS-specific threading APIs for that (via foreign function declarations). I'm planning to add threading support to the standard library to make it easier to write cross-platform multi-threaded code. Also on the roadmap are basic concurrency primitives, like channels.
I haven't decided on what I will do in terms of a memory model: likely, I will add acquire/release constructs to the language, which should be enough to implement things like lockfree data structures as libraries.