MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / DispatchTask

Function DispatchTask

pkg/telemetry/exporter/utils.go:27–31  ·  view source on GitHub ↗

DispatchTask returns a task that calls Dispatch with the provided consumerID.

(q TaskQueue, consumerID string)

Source from the content-addressed store, hash-verified

25
26// DispatchTask returns a task that calls Dispatch with the provided consumerID.
27func DispatchTask(q TaskQueue, consumerID string) task.Func {
28 return func(ctx context.Context) error {
29 return q.Dispatch(ctx, consumerID)
30 }
31}
32
33// PopTask returns a task that calls Pop with the provided consumerID.
34func PopTask(q TaskQueue, consumerID string) task.Func {

Callers 2

TestTaskWrappersFunction · 0.85
TestPopTaskFunction · 0.85

Calls 1

DispatchMethod · 0.65

Tested by 2

TestTaskWrappersFunction · 0.68
TestPopTaskFunction · 0.68