Locker
class Locker
Properties
| static protected Channel> | $channels |
Methods
static bool
lock(string $key)
Acquire a lock for the given key.
static void
unlock(string $key)
Release the lock for the given key.
static void
flushState()
Flush all static state.
Details
at line 22
static bool
lock(string $key)
Acquire a lock for the given key.
Returns true if this is the first lock acquisition (owner), or false if waiting on an existing lock.
at line 37
static void
unlock(string $key)
Release the lock for the given key.
at line 49
static void
flushState()
Flush all static state.