php8.5
Home/ Manual/ swoole / atomic/ Swoole\Atomic::set

Swoole\Atomic::set

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Set a new value to the atomic object.

Description

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

Set a new value to the atomic object.

Func

Parameters

value

The value to set to the atomic object.

Return Values

The current value of the atomic object.

Source: reference/swoole/swoole/atomic/set.xml · from the official PHP manual (php/doc-en)