Skip to content

Commit 3a5ad2e

Browse files
committed
Add method to remove the pending request of the client
1 parent 6bb39ea commit 3a5ad2e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Runtime/ClientRuntimeContext.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,17 @@ public function getPendingRequest()
195195
return $this->pendingRequest;
196196
}
197197

198+
/**
199+
* Removes the pending request.
200+
*/
201+
public function removePendingRequest()
202+
{
203+
if (!isset($this->pendingRequest)) {
204+
return;
205+
}
206+
unset($this->pendingRequest);
207+
}
208+
198209
/**
199210
* @return Version
200211
*/

0 commit comments

Comments
 (0)