From edef4b17accd31b07ec0079d305e8f1be8d4fff9 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 12 Sep 2023 23:07:33 +0800 Subject: mark async.runjobs as public api --- tests/modules/scheduler/runjobs.lua | 2 +- tests/modules/scheduler/spinner.lua | 2 +- tests/modules/scheduler/test.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/modules') diff --git a/tests/modules/scheduler/runjobs.lua b/tests/modules/scheduler/runjobs.lua index aea365241..d84f23152 100644 --- a/tests/modules/scheduler/runjobs.lua +++ b/tests/modules/scheduler/runjobs.lua @@ -1,6 +1,6 @@ import("core.base.scheduler") import("private.async.jobpool") -import("private.async.runjobs") +import("async.runjobs") function _jobfunc(index, total) print("%s: run job (%d/%d)", scheduler.co_running(), index, total) diff --git a/tests/modules/scheduler/spinner.lua b/tests/modules/scheduler/spinner.lua index c48e7d5b7..8d20bf7b7 100644 --- a/tests/modules/scheduler/spinner.lua +++ b/tests/modules/scheduler/spinner.lua @@ -1,4 +1,4 @@ -import("private.async.runjobs") +import("async.runjobs") function main() printf("testing .. ") diff --git a/tests/modules/scheduler/test.lua b/tests/modules/scheduler/test.lua index 0180d7f2e..2dd181433 100644 --- a/tests/modules/scheduler/test.lua +++ b/tests/modules/scheduler/test.lua @@ -48,7 +48,7 @@ function test_yield(t) end function test_runjobs(t) - import("private.async.runjobs") + import("async.runjobs") local total = 100 local comax = 6 -- cgit v1.3.1