PocketMine-MP 5.37.4 git-dbb0a3db4df7e1ea8e62dc67aa0a6030f2ac20e4
Loading...
Searching...
No Matches
pocketmine\thread\NonThreadSafeValue Class Reference
+ Inheritance diagram for pocketmine\thread\NonThreadSafeValue:
+ Collaboration diagram for pocketmine\thread\NonThreadSafeValue:

Public Member Functions

 __construct (mixed $variable)
 
 deserialize ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\thread\NonThreadSafeValue::__construct ( mixed $variable)

@phpstan-param TValue $variable

Definition at line 44 of file NonThreadSafeValue.php.

Member Function Documentation

◆ deserialize()

pocketmine\thread\NonThreadSafeValue::deserialize ( )

Returns a deserialized copy of the original variable.

@phpstan-return TValue

Definition at line 55 of file NonThreadSafeValue.php.


The documentation for this class was generated from the following file: