提交 e935e157 编写于 作者: Z zhangxin_T

fix conflict

Signed-off-by: Nzhangxin_T <zhangxin312@huawei.com>
上级 661f3a7a
...@@ -33,15 +33,12 @@ import backgroundTaskManager from '@ohos.backgroundTaskManager'; ...@@ -33,15 +33,12 @@ import backgroundTaskManager from '@ohos.backgroundTaskManager';
1. 申请延迟挂起 1. 申请延迟挂起
```js ```js
import backgroundTaskManager from '@ohos.backgroundTaskManager'; import backgroundTaskManager from '@ohos.backgroundTaskManager';
let myReason = 'test requestSuspendDelay'; let myReason = 'test requestSuspendDelay';
let delayInfo = backgroundTaskManager.requestSuspendDelay(myReason, () => { let delayInfo = backgroundTaskManager.requestSuspendDelay(myReason, () => {
console.info("Request suspension delay will time out."); console.info("Request suspension delay will time out.");
}); });
var id = delayInfo.requestId;console.info("requestId is: " + id); var id = delayInfo.requestId;console.info("requestId is: " + id);
``` ```
...@@ -54,7 +51,7 @@ backgroundTaskManager.getRemainingDelayTime(id).then( res => { ...@@ -54,7 +51,7 @@ backgroundTaskManager.getRemainingDelayTime(id).then( res => {
}).catch( err => { }).catch( err => {
console.log('promise => Operation failed. Cause: ' + err.data); console.log('promise => Operation failed. Cause: ' + err.data);
}); });
``` ```
3. 取消延迟挂起 3. 取消延迟挂起
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册