You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: client.go
    path of file: ./repos/shellhub/pkg/api/internalclient
    
    the code of the file until where you have to start completion: package internalclient

import (
	"errors"
	"math"
	"net"
	"net/http"

	resty "github.co
    
func NewClientWithAsynq(uri string) Client {
	return NewClient(func(o *Options) error {
		// The internal client used by the SSH server needs to be able to enqueue tasks to the Asynq server, due that,
		// we must set the Asynq client to the internal client as a configuration function.
		options, err := asynq.ParseRedisURI(uri)
		if err != nil {
			return err
		}

		client := asynq.NewClient(options)
		if client == nil {
			return errors.New("failed to create Asynq client")
		}

		o.Asynq = client

		return nil
	})
}