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

Method Publish

pkg/workerpool/workerpool.go:65–65  ·  view source on GitHub ↗

Publish publishes an item to the worker pool to be processed. Publish may spawn a worker in order to fullfil the work load. Publish does not block.

(ctx context.Context, item T)

Source from the content-addressed store, hash-verified

63 // Publish may spawn a worker in order to fullfil the work load.
64 // Publish does not block.
65 Publish(ctx context.Context, item T) error
66
67 // Wait blocks until all workers have been closed.
68 Wait()

Callers 4

publishUplinkMethod · 0.95
publishDownlinkMethod · 0.95
testWorkerPoolFunction · 0.95
benchmarkWorkerPoolFunction · 0.95

Calls

no outgoing calls

Tested by 2

testWorkerPoolFunction · 0.76
benchmarkWorkerPoolFunction · 0.76