diff options
| author | ruki <[email protected]> | 2025-04-16 00:50:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | d8862afe89a16a9f4ad0a21188bd174b3c81a935 (patch) | |
| tree | 3e057180ed3a87cddd1f31f804712debdb77e2b3 /tests/modules/thread/sleep.lua | |
| parent | 6adec9d467ccfa7da048944df3dddfef59e75fe5 (diff) | |
improve thread apis
Diffstat (limited to 'tests/modules/thread/sleep.lua')
| -rw-r--r-- | tests/modules/thread/sleep.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/modules/thread/sleep.lua b/tests/modules/thread/sleep.lua index 75586d615..1890278b3 100644 --- a/tests/modules/thread/sleep.lua +++ b/tests/modules/thread/sleep.lua @@ -10,8 +10,7 @@ end function main() for i = 1, 10 do - -- TODO use thread.start and group - thread.new(callback, {argv = {i}, name = "session_" .. i}):start() + thread.start_named("thread_" .. i, callback, i) end --thread.wait() end |
