Documentation

CustomSleepMixin

Table of Contents

Methods

customSleep()  : void
Waits for a custom amount of time from either a float or an integer.

Methods

customSleep()

Waits for a custom amount of time from either a float or an integer.

protected static customSleep(float|int $delay[, CancellationToken|null $cancellationToken = null ]) : void

Purposefully waits for one more millisecond on Windows due to flakiness in delays between OS.

Parameters
$delay : float|int

Delay in seconds.

$cancellationToken : CancellationToken|null = null

CancellationToken to check for cancellation.

On this page

Search results