class PendingConversationTitle

Properties

protected WaitConcurrent|null $concurrent
protected string $title
protected Throwable|null $failure

Methods

__construct(Closure $generate, Closure|null $runner)

Start the title request in its captured operation context.

string
value()

Wait for the title and return the same result on subsequent reads.

string|null
valueIfReady()

Return the title if generation has already completed, without waiting.

void
cancel()

Cancel and join any title request that is still running.

Details

at line 31
__construct(Closure $generate, Closure|null $runner)

Start the title request in its captured operation context.

Parameters

Closure $generate
Closure|null $runner

at line 49
string value()

Wait for the title and return the same result on subsequent reads.

Return Value

string

at line 64
string|null valueIfReady()

Return the title if generation has already completed, without waiting.

Return Value

string|null

at line 72
void cancel()

Cancel and join any title request that is still running.

Return Value

void