Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct {
// contains filtered or unexported fields
}
Payload encapsulates a job and its input into a neat package to be executed by another thread.
func NewPayload ¶
func NewPayload(ctx context.Context, job Executable, args any) *Payload
NewPayload creates a new payload to send to a worker.
Click to show internal directories.
Click to hide internal directories.