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

Method Pop

pkg/telemetry/exporter/task_queue.go:51–51  ·  view source on GitHub ↗

Pop pops the most recent task in the schedule, for which timestamp is in range [0, time.Now()], the value of the queue goes through the registered callback and determines which one should be called.

(ctx context.Context, consumerID string)

Source from the content-addressed store, hash-verified

49 // Pop pops the most recent task in the schedule, for which timestamp is in range [0, time.Now()], the value of
50 // the queue goes through the registered callback and determines which one should be called.
51 Pop(ctx context.Context, consumerID string) error
52}
53
54// TaskQueueCloser is a function that closes the task queue.

Callers 2

PopMethod · 0.65
PopTaskFunction · 0.65

Implementers 2

mockTaskQueuepkg/telemetry/exporter/task_queue_test
RedisTaskQueuepkg/telemetry/exporter/task_queue.go

Calls

no outgoing calls

Tested by

no test coverage detected