Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Atomic::getSwoole\Atomic::sub>
^Swoole\AtomicLast updated: Mon, 26 Oct 2026

Swoole\Atomic::set

(PECL swoole >= 1.9.0)

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

Description

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

Set a new value to the atomic object.

Warning

This function is currently not documented; only its argument list is available.

Parameters

value

The value to set to the atomic object.

Return Values

The current value of the atomic object.


<Swoole\Atomic::getSwoole\Atomic::sub>
^Swoole\AtomicLast updated: Mon, 26 Oct 2026