Lock
interface Lock (View source)
Methods
bool
get(callable|null $callback = null)
Attempt to acquire the lock.
bool
block(int $seconds, callable|null $callback = null)
Attempt to acquire the lock for the given number of seconds.
void
release()
Release the lock.
Details
bool
get(callable|null $callback = null)
Attempt to acquire the lock.
bool
block(int $seconds, callable|null $callback = null)
Attempt to acquire the lock for the given number of seconds.
void
release()
Release the lock.