Also, for BlueScript async stuff, thread is a primitive type so you can do thread variableName1;
Then do run(variableName1){ foo() } to run on another thread
You can also use threadpool variablePool = [variableName1, variablename2, variablename3];
And run(variablePool){ foo() } will queue that task, and have the first empty thread run it, where the Thread name is just the thread variable's name (W.I.P)
View all comments
21
u/lucianw 1h ago
In the C# language design team we were brainstorming what keyword/syntax to use for the new async feature. The candidates were
- prefix operator "await foo()"... sounded ridiculous, like Jane Austen. I prithee kind sir, await here.
- postfix operator "foo() anon"... logically a postfix operator would be better but this also sounded ridiculous, like Shakespeare
We picked "await", but it really was every bit as ridiculous as BlueScript.