Added a generic Promise type

I anticipate increasing demand for promises, and since all the libraries I could find suck, we'll stick to our own impl for now.
This commit is contained in:
Dylan K. Taylor
2021-05-08 15:57:30 +01:00
parent 33eb97da97
commit 624495f4d3
5 changed files with 60 additions and 97 deletions

View File

@ -20,6 +20,16 @@ parameters:
count: 1
path: ../../../src/entity/projectile/Projectile.php
-
message: "#^Parameter \\#1 \\$ of closure expects TValue, TValue given\\.$#"
count: 2
path: ../../../src/utils/Promise.php
-
message: "#^Property pocketmine\\\\utils\\\\Promise\\<TValue\\>\\:\\:\\$result \\(TValue\\|null\\) does not accept TValue\\.$#"
count: 1
path: ../../../src/utils/Promise.php
-
message: "#^Parameter \\#1 \\$ of closure expects TMemberType, TMemberType given\\.$#"
count: 1