PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\promise\PromiseResolver Class Reference
+ Collaboration diagram for pocketmine\promise\PromiseResolver:

Public Member Functions

 getPromise ()
 
 reject ()
 
 resolve (mixed $value)
 

Detailed Description

@phpstan-template TValue

Definition at line 29 of file PromiseResolver.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\promise\PromiseResolver::__construct ( )

Definition at line 35 of file PromiseResolver.php.

Member Function Documentation

◆ getPromise()

pocketmine\promise\PromiseResolver::getPromise ( )

@phpstan-return Promise<TValue>

Definition at line 71 of file PromiseResolver.php.

◆ reject()

pocketmine\promise\PromiseResolver::reject ( )

Definition at line 56 of file PromiseResolver.php.

◆ resolve()

pocketmine\promise\PromiseResolver::resolve ( mixed $value)

@phpstan-param TValue $value

Definition at line 43 of file PromiseResolver.php.


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