---
title: "atomic: \"use typeshade\" 파일에서 쓰는 타입 이름 하나, TypeShade 언어 참조"
description: "atomic (타입), TypeShade 언어 참조 항목입니다. An atomic<u32> or atomic<i32>: an integer location in a read-write storage binding that many…"
url: https://typeshade.dev/ko/reference/types/atomic/
language: ko
---

# `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의 컴파일러가 쓴 영어 원문입니다.

## 구문

```ts
type atomic<T extends u32 | i32 = u32> = { readonly [atomicTag]: T }
```

## 매개변수

- `T` 선택 사항 `u32 | i32`

## 설명

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">`.

## 예제

- [`path/histogram/histogram.shade.ts`](https://typeshade.dev/ko/guide/examples/histogram/)
- [`gallery/atomic-histogram/atomic-histogram.shade.ts`](https://typeshade.dev/ko/guide/examples/atomic-histogram/)
- [`gallery/compute-sync/compute-sync.shade.ts`](https://typeshade.dev/ko/guide/examples/compute-sync/)
- [`gallery/subgroup-reduce/subgroup-reduce.shade.ts`](https://typeshade.dev/ko/guide/examples/subgroup-reduce/)
- [`gallery/workgroup-scratch/workgroup-scratch.shade.ts`](https://typeshade.dev/ko/guide/examples/workgroup-scratch/)

## 함께 보기

- [타입](https://typeshade.dev/ko/reference/types/)
