From e3efbd2291e16d9b2852efcbedee6d87e0ffe383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Wed, 16 Nov 2022 20:45:36 +0800 Subject: [PATCH] Update uts-for-android.md --- docs/plugin/uts-for-android.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index f1b6aaa7b..4c334138b 100644 --- a/docs/plugin/uts-for-android.md +++ b/docs/plugin/uts-for-android.md @@ -993,15 +993,13 @@ onStatusUpdate(_name:string, _status:Int, _desc:string){ ```uts class CustomThread extends Thread{ - constructor (){ + constructor(){ super(); } override run(){ - for(let i = 1;i < 10;i++){ - Thread.sleep(1000) - console.log("i = " + i) - } + Thread.sleep(1000) + console.log("CustomThread = " + Thread.currentThread().getName()) } } ``` -- GitLab