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
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
$options read-only
Options set for the underlying timer created.
public
TimerOptions|null
$options
= null
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
selfwithInterval()
Await timeout.
public
withInterval(DateIntervalValue $interval) : self
Parameters
- $interval : DateIntervalValue
Return values
selfwithTimerOptions()
Options set for the underlying timer created.
public
withTimerOptions(TimerOptions|null $options) : self
Parameters
- $options : TimerOptions|null