Documentation

Lock

Table of Contents

block()  : bool
Attempt to acquire the lock for the given number of seconds.
get()  : bool
Attempt to acquire the lock.
release()  : void
Release the lock.

Methods

block()

Attempt to acquire the lock for the given number of seconds.

public block(int $seconds[, callable|null $callback = null ]) : bool
Parameters
$seconds : int
$callback : callable|null = null
Return values
bool

get()

Attempt to acquire the lock.

public get([callable|null $callback = null ]) : bool
Parameters
$callback : callable|null = null
Return values
bool

release()

Release the lock.

public release() : void
Return values
void

Search results