ms-types 0.3.21 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/thread.d.ts
CHANGED
|
@@ -26,14 +26,12 @@ declare namespace thread {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* 异步执行线程代码
|
|
29
|
-
* @param
|
|
29
|
+
* @param threadJsFileName 线程js文件路径
|
|
30
30
|
* @returns 线程对象
|
|
31
31
|
* @example
|
|
32
|
-
* thread.run(
|
|
33
|
-
* logi("hello world")
|
|
34
|
-
* })
|
|
32
|
+
* thread.run("test_thread.js")
|
|
35
33
|
*/
|
|
36
|
-
function run(
|
|
34
|
+
function run(threadJsFileName: string): Thread;
|
|
37
35
|
/**
|
|
38
36
|
* 停止所有线程
|
|
39
37
|
* @returns 是否停止成功
|
|
@@ -27,16 +27,12 @@ declare namespace $线程 {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* 异步执行线程代码
|
|
30
|
-
* @param 线程js文件路径
|
|
31
|
-
* @
|
|
32
|
-
* @param 回调函数
|
|
33
|
-
* @returns 线程名称
|
|
30
|
+
* @param 线程js文件名 线程js文件路径
|
|
31
|
+
* @returns 线程对象
|
|
34
32
|
* @example
|
|
35
|
-
*
|
|
36
|
-
* $打印信息日志("hello world")
|
|
37
|
-
* })
|
|
33
|
+
* $线程.运行("test_thread.js")
|
|
38
34
|
*/
|
|
39
|
-
function 运行(
|
|
35
|
+
function 运行(线程js文件名: 字符串): 线程;
|
|
40
36
|
/**
|
|
41
37
|
* 停止所有线程
|
|
42
38
|
* @returns 是否停止成功
|