Swoole\Atomic::sub

Subtract a number to the value of the atomic object.

Description

public int Swoole\Atomic::sub(int $sub_value = ?)

Subtract a number to the value of the atomic object.

Parameters

sub_value

The value which will be subtracted to the current value.

Return Values

The current value of the atomic object.