The synchronisd keyword should be implemented to ensure safety in a threaded program.
It would work in the same way as it does in Java.
// Synchronised function
synchronised func do() {
...
}
// Synchronised block
synchronised (x) {
}
More functionality or a syntax change could be decided upon later on.
The
synchronisdkeyword should be implemented to ensure safety in a threaded program.It would work in the same way as it does in Java.
More functionality or a syntax change could be decided upon later on.