mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-30 19:02:32 +00:00
Add interface to check whether it is a concurrent function
issue: https://gitee.com/openharmony/interface_sdk-js/issues/I94BSE Signed-off-by: zhouwenxuan <zhouwenxuan1@huawei.com>
This commit is contained in:
parent
517baac17c
commit
cd10b8854f
13
api/@ohos.taskpool.d.ts
vendored
13
api/@ohos.taskpool.d.ts
vendored
@ -1078,6 +1078,19 @@ declare namespace taskpool {
|
||||
* @since 12
|
||||
*/
|
||||
function terminateTask(longTask: LongTask): void;
|
||||
|
||||
/**
|
||||
* Check if the function is a concurrent function.
|
||||
*
|
||||
* @param { Function } func - The function name to check.
|
||||
* @returns { boolean } Returns {@code true} if it is a concurrent function; returns {@code false} otherwise.
|
||||
* @throws { BusinessError } 401 - The input parameters are invalid.
|
||||
* @syscap SystemCapability.Utils.Lang
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
function isConcurrent(func: Function): boolean;
|
||||
}
|
||||
|
||||
export default taskpool;
|
||||
|
Loading…
Reference in New Issue
Block a user