PocketMine-MP 5.27.1 git-9af3cde03fabbe4129c79e46dc87ffa0fff446e6
|
Public Member Functions | |
__construct (mixed $variable) | |
deserialize () | |
This class automatically serializes values which can't be shared between threads. This class does NOT enable sharing the variable between threads. Each call to deserialize() will return a new copy of the variable.
@phpstan-template TValue
Definition at line 38 of file NonThreadSafeValue.php.
pocketmine\thread\NonThreadSafeValue::__construct | ( | mixed | $variable | ) |
@phpstan-param TValue $variable
Definition at line 44 of file NonThreadSafeValue.php.
pocketmine\thread\NonThreadSafeValue::deserialize | ( | ) |
Returns a deserialized copy of the original variable.
@phpstan-return TValue
Definition at line 55 of file NonThreadSafeValue.php.