Open utterances-bot opened 4 years ago
What is that syntax at sys.thread.Thread.create?
() -> {}
Looks like a Lambda, but it is not accepted by try.haxe.org as correct syntax.
@daverave1212 It is indeed an arrow function. Unfortunately, try.haxe.org
is a bit outdated. Arrow functions are a Haxe 4 feature.
@Aurel3000 Thanks, I didn't know Haxe supports arrow functions!
What's about synchronozation methods? for example I need to pause a thread until some data becomes avalible.
I will answer my own question, the is sys,thread.Lock and sys,thread,Semaphore
Threading - Haxe - The Cross-platform Toolkit
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/std-threading.html