# solid-performance/1.9.0/src/Performance/Lock/Contracts/Blockable_Lock.php

Solid Performance – Your No-Code Caching, Performance, &amp; Page Speed Solution, version 1.9.0. 34 lines.

- Page: https://pluginprobe.com/plugins/solid-performance/1.9.0/code/src/Performance/Lock/Contracts/Blockable_Lock.php
- Raw: https://pluginprobe.com/plugins/solid-performance/1.9.0/raw/src/Performance/Lock/Contracts/Blockable_Lock.php
- Modified: 2025-02-13T01:04:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/solid-performance/1.9.0/code/src/Performance/Lock/Contracts/Blockable_Lock.php#L10-L20`.

```php
<?php
/**
 * The Lock contract that allows block acquisition.
 *
 * @package SolidWP\Performance
 */

declare( strict_types=1 );

namespace SolidWP\Performance\Lock\Contracts;

use SolidWP\Performance\Lock\Exceptions\LockTimeoutException;

/**
 * The Lock contract that allows block acquisition.
 *
 * @internal
 *
 * @package SolidWP\Performance
 */
interface Blockable_Lock extends Lock {

	/**
	 * Attempt to acquire the lock for the given number of seconds.
	 *
	 * @param  int $seconds How long to wait to acquire the lock before giving up.
	 *
	 * @throws LockTimeoutException If we are unable to acquire the lock within the given seconds.
	 *
	 * @return bool
	 */
	public function block( int $seconds ): bool;
}

```
