From 08636d079dd4c390a36b89f433fa7e823d945975 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 31 Oct 2021 22:48:52 +0000 Subject: [PATCH] Promise: expose isResolved() --- src/utils/Promise.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/Promise.php b/src/utils/Promise.php index c4cf7eb2fd..d9ae9c5637 100644 --- a/src/utils/Promise.php +++ b/src/utils/Promise.php @@ -48,4 +48,8 @@ final class Promise{ $this->shared->onFailure[spl_object_id($onFailure)] = $onFailure; } } + + public function isResolved() : bool{ + return $this->shared->resolved; + } } \ No newline at end of file