30 lines
643 B
JavaScript
Raw Permalink Normal View History

import rt from 'apigo.cc/gojs/runtime'
import co from 'apigo.cc/gojs/console'
import task from 'apigo.cc/gojs/task'
import u from 'apigo.cc/gojs/util'
const taskName = '「c」'
let runValue = 1
function onStart() {
// co.info(taskName, 'cStart', runValue)
task.getSet('cStarts', old => {
return u.int(old) + runValue
})
}
let i = 0
function onRun() {
// co.info(taskName, 'cRun', runValue)
task.getSet('cTag', old => {
return u.int(old) + runValue
})
}
function onStop() {
// co.info(taskName, 'cStop', runValue)
task.getSet('cStops', old => {
return u.int(old) + runValue
})
}