Open
Description
Description
The acquiring of a lock can be "blocking" (which is false
by default).
Similiar to the ttl
parameter of the lock I would love to see a "maxWaitTime" on acquire
(only used when "blocking: true")
e.g.
$lock = $factory->createLock('pdf-creation');
$lock->acquire(blocking: true, blockingMaxWaitTime: 20 /*seconds*/);
When the lock could not be acquired in 20 seconds a LockAcquiringException
is thrown.
Example
No response