From 8877e85cbd5da71f5d75e66f33cb80a4f70ca93f Mon Sep 17 00:00:00 2001 From: wangqing Date: Thu, 21 Apr 2022 15:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangqing --- .../background-task-management/background-task-dev-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/background-task-management/background-task-dev-guide.md b/zh-cn/application-dev/background-task-management/background-task-dev-guide.md index b57ecc4176..eae8a598f6 100644 --- a/zh-cn/application-dev/background-task-management/background-task-dev-guide.md +++ b/zh-cn/application-dev/background-task-management/background-task-dev-guide.md @@ -13,7 +13,7 @@ | 接口名 | 描述 | | -------- | -------- | | requestSuspendDelay(reason: string, callback: Callback<void>): [**DelaySuspendInfo**](../reference/apis/js-apis-backgroundTaskManager.md#delaysuspendinfo) | 后台应用申请延迟挂起。
延迟挂起时间一般情况下默认值为180000,低电量(依据系统低电量广播)时默认值为60000。 | -| getRemainingDelayTime(requestId: number): Promise<number> | 获取应用程序进入挂起状态前的剩余时间。(requestId从requestSuspendDelay的返回值获取)
其任务执行结果以Promise形式则返回给应用。 | +| getRemainingDelayTime(requestId: number): Promise<number> | 获取应用程序进入挂起状态前的剩余时间。(requestId从requestSuspendDelay的返回值获取)
其任务执行结果以Promise形式返回给应用。 | | cancelSuspendDelay(requestId: number): void | 取消延迟挂起。(requestId从requestSuspendDelay的返回值获取) | -- GitLab