提交 5fd1a5d2 编写于 作者: S ShiJie

fix: Modify createrunninglock sample error

Signed-off-by: NShiJie <shijie20@huawei.com>
Change-Id: If27a9722abb2d619182156463c6edb8af18bbb5f
上级 1e3a479f
......@@ -109,13 +109,13 @@ Creates a **RunningLock** object.
```
runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.BACKGROUND, (error, lockIns) => {
if (typeof error === "undefined") {
console.log('create runningLock test error: ' + error);
} else {
var used = lockIns.isUsed();
console.info('runninglock is used: ' + used);
lockIns.lock(500);
used = lockIns.isUsed();
console.info('after lock runninglock is used ' + used);
} else {
console.log('create runningLock test error: ' + error);
}
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册