为什么HTML5的Web工作者的支持从Android浏览器版本2.2及更高版本中删除?版本、更高、工作者、浏览器

2023-09-05 00:29:15 作者:心之所向

我想了解一些有关的JavaScript线程。而从教程中,我了解了HTML5 API的网络工作者。该API允许JavaScript的多线程。于是,我开始弄清楚如何和我在哪里可以使用此功能。

I'm trying to learn something about JavaScript threading. And from a tutorial I learned about HTML5 API web worker. This API enables JavaScript multi-threading. So I start to figure out how and where can I use this feature.

http://caniuse.com/#search=worker

我觉得这个API仅支持在下的Andr​​oid版本的浏览器。它是Android 2.2的不可用及更高版本。

I find this API is only supported in lower version of Android browser. It is unavailable in Android 2.2 and later.

是这样的结果是否正确?I F它,是因为性能上的考虑呢?

Is this result correct?I f it is, is it because of the performance consideration?

在该版本将这个API可用?

On which version will this API be available?

推荐答案

Android 2.2的从的config.h

from config.h of Android 2.2.

提交68698168e7547cc10660828f1fb82be7a8efa845

commit 68698168e7547cc10660828f1fb82be7a8efa845

作者:史蒂夫座

日期:星期三03月17日14时37分19秒2010 +0000

Date: Wed Mar 17 14:37:19 2010 +0000

禁用工人

这是因为V8在Android上不具备所需的锁定。    还禁用信道的消息,其用于仅与工人

This is because V8 on Android does not have the required locking. Also disables channel messaging, which is used only with workers.

错误:2522239

Bug: 2522239

更改ID:I6cb91b4048c7e1a0351e422561625397a2e98986

Change-Id: I6cb91b4048c7e1a0351e422561625397a2e98986

通过http://$c$c.google.com/p/android/issues/detail?id=10004#c7