# Swoole\Atomic::set

(PECL swoole >= 1.9.0)

Swoole\Atomic::set — Set a new value to the atomic object.

### 说明

public Swoole\Atomic::set(int `$value`): int

Set a new value to the atomic object.

警告

本函数还未编写文档，仅有参数列表。

### 参数

`value`

  The value to set to the atomic object.

### 返回值

The current value of the atomic object.

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open