def
func:taskProgress
taskProgress(progress)
Update the current running task's progress data with given dict. This is a silent no-op if the current context is not running in a task.
Example:
// report progress percentage processing a list of records recs.each((rec, index)=>do taskProgress({percent: round(100%*index/recs.size), cur:rec.dis}) processRec(rec) end) taskProgress({percent:100%})