Async update #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "async-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mutexkeyword to replace^type suffix. This makes it clearer that a mutex cannot bemut, since only one of those keywords is allowed.unlockkeyword and replace withlockscope. When you lock a value, you create a new scopelock value { }, inside which the value ismut. The value unlocks when exiting out of the scope, either naturally when the code inside the scope is done running, or by exiting from the scope early withreturnorthrow(which will also exit out of the surrounding function, if any), or withbreak(optionally with a label if needed).awaited by the end of the scope will be discarded, just like any other variable.futkeyword to declare a Future instead of the*sigil.mutexkeyword, removeunlockand makelockscopefutkeyword