atomic
Type
An atomic<u32> or atomic<i32>: an integer location in a read-write storage binding that many invocations update at once through atomicAdd, atomicLoad and the other atomic builtins.
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
Syntax
type atomic<T extends u32 | i32 = u32> = { readonly [atomicTag]: T }Parameters
Description
It is never read or assigned directly, and it is declared only inside a storage binding, as declare const bins: storage<array<atomic<u32>>, "read_write">.