Contract for a basic locking mechanism.

public abstract acquire(array $options = [])

Acquires a lock.

  • return bool
  • throws RuntimeException If the lock fails to be acquired.
public abstract release()

Releases the lock.

  • throws RuntimeException
public abstract synchronize(callable $func, array $options = [])

Execute a callable within a lock.

  • return mixed
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only