def run_server(server)
      grpc_server = server.server

      t = Thread.new { grpc_server.run }
      grpc_server.wait_till_running

      begin
        yield
      ensure
        grpc_server.stop
        sleep(0.1) until grpc_server.stopped?
        t.join
      end
    end
def run_server(server)
      grpc_server = server.server

      t = Thread.new { grpc_server.run }
      grpc_server.wait_till_running

      begin
        yield
      ensure
        grpc_server.stop
        sleep(0.1) until grpc_server.stopped?
        t.join
      end
    end
Runs a server

 @param [Gruf::Server] server