mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-23 08:30:06 +00:00
chat朋友圈taskpool修改
Signed-off-by: enxue <sunxiaoxiang7@huawei.com>
This commit is contained in:
parent
c42a854326
commit
d979e723c6
@ -323,7 +323,7 @@ async function getWebData(url: string): Promise<Array<FriendMoment>> {
|
||||
jsonObj[i].imageList, jsonObj[i].media, jsonObj[i].mediaPreview);
|
||||
friendMomentBuckets.push(chatModelTemp);
|
||||
}
|
||||
// 设置count计数,用来延长方法执行时间,方便后续监视性能
|
||||
// 在TaskPool中模拟耗时操作
|
||||
let taskCount: number = 0;
|
||||
for (let i = 0;i < 10000; i++) {
|
||||
taskCount++;
|
||||
|
Loading…
Reference in New Issue
Block a user