Home
last modified time | relevance | path

Searched refs:taskB (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-watch.md245 @State @Watch('onTaskBChanged') taskB: Task = new Task(false);
258 Text(`父组件任务B状态: ${this.taskB.isFinished ? '已完成' : '未完成'}`)
259 ChildComponent({ taskA: this.taskA, taskB: this.taskB })
262 this.taskB = new Task(!this.taskB.isFinished);
271 @ObjectLink @Watch('onObjectLinkTaskChanged') taskB: Task;
285 Text(`子组件任务B状态: ${this.taskB.isFinished ? '已完成' : '未完成'}`)
293 1. 当点击按钮切换任务状态时,父组件首先更新了被\@ObjectLink关联的taskB,然后更新了被\@Link关联的taskA。
297 观测到父组件任务属性变化: taskB
300 观测到子组件@ObjectLink关联的任务属性变化: taskB
/ohos5.0/docs/en/application-dev/quick-start/
H A Darkts-watch.md241 @State @Watch('onTaskBChanged') taskB: Task = new Task(false);
254 Text(`Parent component task B state: ${this.taskB.isFinished ? 'Finished' : 'Unfinished'}`)
255 ChildComponent({ taskA: this.taskA, taskB: this.taskB })
258 this.taskB = new Task(!this.taskB.isFinished);
267 @ObjectLink @Watch('onObjectLinkTaskChanged') taskB: Task;
281 Text(`Child component task B state: ${this.taskB.isFinished ? 'Finished' : 'Unfinished'}`)
289 1. When you click the button to switch the task state, the parent component updates **taskB** assoc…
293 Property of this parent component task is changed: taskB
296 Property of @ObjectLink associated task of the child component is changed: taskB
/ohos5.0/base/powermgr/power_manager/test/apitest/inner_api/ffrt/src/
H A Dffrt_utils_test.cpp262 FFRTTask taskB = [&data]() { in __anone73078890f02() variable
271 timer.SetTimer(TIMER_ID_B, taskB, 60);
279 timer.SetTimer(TIMER_ID_B, taskB, 60);
287 timer.SetTimer(TIMER_ID_B, taskB, 60);