code: public function call(\Closure $closure)
      {
          $resource = $this->get();
          $result = $closure($resource);
          $this->put($resource);
  
          return $result;
      }
docs: call resource(will auto get and put resource)
  @param \Closure $closure
  @return mixed