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

Function PopTask

pkg/telemetry/exporter/utils.go:34–38  ·  view source on GitHub ↗

PopTask returns a task that calls Pop with the provided consumerID.

(q TaskQueue, consumerID string)

Source from the content-addressed store, hash-verified

32
33// PopTask returns a task that calls Pop with the provided consumerID.
34func PopTask(q TaskQueue, consumerID string) task.Func {
35 return func(ctx context.Context) error {
36 return q.Pop(ctx, consumerID)
37 }
38}
39
40// OSTelemetryData returns the OS telemetry data which is attached to telemetry messages.
41func OSTelemetryData() *models.OSTelemetry {

Callers 2

TestTaskWrappersFunction · 0.85
TestPopTaskFunction · 0.85

Calls 1

PopMethod · 0.65

Tested by 2

TestTaskWrappersFunction · 0.68
TestPopTaskFunction · 0.68