Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskPlus1 = parallel.New("test-worker", func(db *datastore.Datastore, model *Model) {
model.Count = model.Count + 1
model.MustPut()
})
Define a new worker with parallel.Task
View Source
var TaskSetVal = parallel.New("test-worker2", func(db *datastore.Datastore, model *Model2, v int) {
model.Count = v
model.MustPut()
})
Define a new worker with parallel.Task
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.