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.
시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.
구문
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">.