public function with($key, $callback, $seconds = 60)
    {
        if ($this->get($key, $seconds)) {
            try {
                call_user_func($callback);
            } finally {
                $this->release($key);
            }
        }
    }
public function with($key, $callback, $seconds = 60)
    {
        if ($this->get($key, $seconds)) {
            try {
                call_user_func($callback);
            } finally {
                $this->release($key);
            }
        }
    }
public function with ( $ key , $ callback , $ seconds = 60 ) { if ( $ this -> get ( $ key , $ seconds ) ) { try { call_user_func ( $ callback ) ; } finally { $ this -> release ( $ key ) ; } } }
Execute the given callback if a lock can be acquired.

@param  string  $key
@param  \Closure  $callback
@param  int  $seconds
@return void
Execute the given callback if a lock can be acquired .