Temporal Docs PHP SDK API Version 2.20 (latest release) Release notes

Documentation

AwaitOptions
in package

FinalYes

Options for {@see Workflow::awaitWithTimeout()}.

 yield Workflow::awaitWithTimeout(
     AwaitOptions::new(30)->withTimerOptions(
         TimerOptions::new()->withSummary('rtds-resolution-wait'),
     ),
     fn(): bool => $this->resolution !== null,
 );
Tags
psalm-import-type

DateIntervalValue from DateInterval

Table of Contents

Properties

$interval  : DateInterval
Await timeout.
$options  : TimerOptions|null
Options set for the underlying timer created.

Methods

__construct()  : mixed
new()  : self
withInterval()  : self
Await timeout.
withTimerOptions()  : self
Options set for the underlying timer created.

Properties

$interval read-only

Await timeout.

public DateInterval $interval

Methods

__construct()

public __construct(DateInterval $interval[, TimerOptions|null $options = null ]) : mixed
Parameters
$interval : DateInterval
$options : TimerOptions|null = null

new()

public static new(DateIntervalValue $interval[, TimerOptions|null $options = null ]) : self
Parameters
$interval : DateIntervalValue

Await timeout.

$options : TimerOptions|null = null
Return values
self

withInterval()

Await timeout.

public withInterval(DateIntervalValue $interval) : self
Parameters
$interval : DateIntervalValue
Return values
self

withTimerOptions()

Options set for the underlying timer created.

public withTimerOptions(TimerOptions|null $options) : self
Parameters
$options : TimerOptions|null
Return values
self
On this page

Search results