package
0.0.4
Repository: https://github.com/qqunity/asynq.git
Documentation: pkg.go.dev

# Functions

As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
CanonicalCode returns the canonical code of the given error if one is present.
E builds an error value from its arguments.
Is reports whether any error in err's chain matches target.
IsQueueNotEmpty reports whether any error in err's chain is of type QueueNotEmptyError.
IsQueueNotFound reports whether any error in err's chain is of type QueueNotFoundError.
IsRedisCommandError reports whether any error in err's chain is of type RedisCommandError.
IsTaskAlreadyArchived reports whether any error in err's chain is of type TaskAlreadyArchivedError.
IsTaskNotFound reports whether any error in err's chain is of type TaskNotFoundError.
New returns an error that formats as the given text.
Unwrap returns the result of calling the Unwrap method on err, if err's type contains an Unwrap method returning error.

# Constants

List of canonical error codes.
List of canonical error codes.
List of canonical error codes.
List of canonical error codes.
List of canonical error codes.
List of canonical error codes.

# Variables

ErrDuplicateTask indicates that another task with the same unique key holds the uniqueness lock.
ErrNoProcessableTask indicates that there are no tasks ready to be processed.
ErrTaskIdConflict indicates that another task with the same task ID already exist.

# Structs

Error is the type that implements the error interface.
QueueNotEmptyError indicates that the given queue is not empty.
QueueNotFoundError indicates that a queue with the given name does not exist.
RedisCommandError indicates that the given redis command returned error.
TaskAlreadyArchivedError indicates that the task in question is already archived.
TaskNotFoundError indicates that a task with the given ID does not exist in the given queue.

# Type aliases

Code defines the canonical error code.
Op describes an operation, usually as the package and method, such as "rdb.Enqueue".