atomic
타입
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.
이름마다 붙은 시그니처와 설명은 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type atomic<T extends u32 | i32 = u32> = { readonly [atomicTag]: T }매개변수
설명
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">.