php-lock / lock

Lock library to provide serialized execution of PHP code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nonblocking check for mutex

segadora opened this issue · comments

We are working with a queue system. If one mutex is already used, I would like it to be possible to put the job back on the queue. Like

Mutex::check(....)->then(If the mutex is free)->fail(If the mutex is not free)