MCP PHP SDK

FiberSettlement

FinalYes

Settles once a handler fiber the runtime suspended is the server's again: suspended for it, or returned.

FiberSchedulerInterface::wait() waits on it.

Table of Contents

Properties

$callbacks  : array<int, callable(): void>
$settled  : bool

Methods

isSettled()  : bool
then()  : void
Calls $callback once settled, right away when it already is.

Properties

Methods

then()

Calls $callback once settled, right away when it already is.

public then(callable(): void $callback) : void

The handler fiber is still running when $callback is called: see FiberSchedulerInterface::wait().

Parameters
$callback : callable(): void
On this page

Search results