MCPcopy
hub / github.com/robfig/cron / appendingJob

Function appendingJob

chain_test.go:12–19  ·  view source on GitHub ↗
(slice *[]int, value int)

Source from the content-addressed store, hash-verified

10)
11
12func appendingJob(slice *[]int, value int) Job {
13 var m sync.Mutex
14 return FuncJob(func() {
15 m.Lock()
16 *slice = append(*slice, value)
17 m.Unlock()
18 })
19}
20
21func appendingWrapper(slice *[]int, value int) JobWrapper {
22 return func(j Job) Job {

Callers 2

appendingWrapperFunction · 0.85
TestChainFunction · 0.85

Calls 1

FuncJobFuncType · 0.85

Tested by

no test coverage detected