setDelay

abstract suspend fun setDelay(connection: MockzillaConnectionConfig, keys: Collection<EndpointConfiguration.Key>, delayMs: Int?): Result<Unit>

Overrides the response delay for the specified endpoints on the device at connection.

Return

Result.success on success, Result.failure if the request could not be completed.

Parameters

connection

The device to target.

keys

The keys of the endpoints to update.

delayMs

The delay to apply in milliseconds, or null to reset to each endpoint's configured default.