dart2 sdk web端不再支持对 isolate 的支持。

对于javascript玩家推荐使用 Web Workers 替换。API不支持多端统一这让人太不爽了,如果你有什么方法解决,求评论告知,万分感谢!

不再支持的原因:

原论坛链接:https://groups.google.com/a/dartlang.org/g/misc/c/djfFMNCWmkE/m/F7WE8a0JAwAJ?pli=1

原文:

As part of our work to ship Dart 2, we are removing support in our web tools for dart:mirrors and dart:isolate. You will see this change in dart2js and the Dart Dev Compiler in the next few weeks on the Dart SDK dev channel.
Note: the Dart VM will continue to fully support both libraries.
Details:
dart:isolate - This library was an attempt to provide a single API that provides common concurrency functionality across Dart’s web and native platforms. While useful in some cases, most users found the isolate API limiting compared to the Web Workers API. The infrastructure for supporting isolates also adds substantial overhead when compiling to JavaScript. In the future, you should use Web Workers to access concurrency on the web.
dart:mirrors - This library provides a runtime reflection API. To provide a full fidelity experience, Dart JavaScript compilers included a substantial amount of type information while also losing the ability to do precise tree-shaking. This leads to dramatically increased output size and execution time. We recommend web developers use code generation using tools like package:build and package:source_gen. These are the tools used by AngularDart and package:json_serializable.
If you have questions about this change, please post on the Dart discussion group.

For more news and information, visit https://plus.google.com/+dartlang
To join the conversation, visit https://groups.google.com/a/dartlang.org/

翻译:

作为发布Dart 2的工作的一部分,我们正在删除Web工具中对dart:mirrors和dart:isolate的支持。在接下来的几周内,您将在Dart SDK开发人员频道上看到dart2js和Dart Dev Compiler中的这一更改。
注意:Dart VM将继续完全支持两个库。
详细信息:dart:isolate-该库试图提供一个API,该API在Dart的Web和本机平台上提供通用的并发功能。尽管在某些情况下很有用,但大多数用户发现与Web Workers API相比,隔离API的限制。支持隔离的基础结构在编译为JavaScript时也增加了相当大的开销。将来,您应该使用Web Workers来访问Web上的并发性。
dart:mirrors-该库提供了运行时反射API。为了提供完整的保真度体验,Dart JavaScript编译器包含了大量的类型信息,同时也失去了进行精确摇树的能力。这导致输出大小和执行时间大大增加。我们建议Web开发人员使用诸如package:build和package:source_gen之类的工具来生成代码。这些是AngularDart和package:json_serializable使用的工具。
如果您对此更改有疑问,请在Dart讨论组上发帖。

有关更多新闻和信息,请访问 https://plus.google.com/+dartlang
加入对话,请访问 https://groups.google.com/a/dartlang.org/

Unsupported operation: dart:isolate is not supported on dart4web相关推荐

  1. an unsupported operation was attempted问题解决

    今天打算自绘MFC的界面时,建了个测试对话框试了下,在删除了一个IDC_STATIC控件后,程序运行起来出错了,DEBUG了一下弹出an unsupported operation was attem ...

  2. Operation category READ is not supported in state standby

    RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in ...

  3. HDFS报错解决:Operation category JOURNAL is not supported in state standby

    现象: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation categor ...

  4. 聊一聊Flutter Engine线程管理与Dart Isolate机制

    阿里妹导读:Flutter是一款开源的移动跨平台UI开发套件,它不仅与现存的Native代码兼容,还能帮你用Dart语言快速开发高质量的跨平台App. 本文由闲鱼技术团队福居撰写,结合Flutter ...

  5. HUE 打开 WorkFlow异常 Operation category READ is not supported in state standby

    异常:在hue上配置的一些定时任务突然停止执行. 1.打开页面HUE->WorkFlow 发现页面异常,无法进入WorkFlow,如下图 2.查看HUE日志 查看到WebHdfsExceptio ...

  6. HDFS查看异常:Operation category READ is not supported in state standby. Visit

    跨集群访问hdfs失败 $ hdfs dfs -ls hdfs://test:8020/hbase ls: Operation category READ is not supported in st ...

  7. 启动Spark出现Operation category READ is not supported in state standby

    1.美图 2.背景 运行spark任务报错 Operation category READ is not supported in state standby 查看界面 05的ip 是211 04的i ...

  8. attempted an unsupported operation 、an unsupported operation was attempted [尝试不支持的操作]错误的三种解决方案

    在修改MFC程序的时候突然出现了attempted an unsupported operation[尝试不支持的操作]的错误,发现是由于修改了资源ID导致,该错误是由找不到相关资源ID导致.     ...

  9. odbc An unsupported operation was attempted

    今天在配置oracle 10g odbc数据源的时候提示an unsupported operation was attempted,在网上找到如下解决办法,特在这里记录一下,以免下次遇上忘记: 直接 ...

  10. HDFS开启HA后,Hbase的REGIONSERVERS启动错误(Operation category READ is not supported in state standby)

    问题: HDFS开启HA后,Hbase的REGIONSERVERS启动错误(Operation category READ is not supported in state standby) 解决方 ...

最新文章

  1. MySQL中的数据类型
  2. [日常] Go语言圣经--Channel习题
  3. 关于TP框架的微信开发服务器配置TOKEN验证失败解决方案
  4. 2.3.5 mysql角色管理
  5. 2021年春季学期期末统一考试 国际公法 试题
  6. 初中数学知识点总结_初中物理 | 最全知识点总结
  7. C语言学习,关于fflush 和setvbuf
  8. MongoDB 复制集的选举原理
  9. Unity4.3 遮挡剔除:基本知识
  10. 我理解设计模式C++实现观察者模式Observer Pattern
  11. java 读取office文件,java读取office文件
  12. 《缠中说禅108课》44:小级别背驰引发大级别转折
  13. 完美解决 OneNote 笔记无法同步的问题
  14. 微博html5版打不开,电脑新浪微博页面打不开怎么办|电脑微博无法打开的解决方法...
  15. layui数据表格分页无法正常显示
  16. 单位办公电脑声音和摄像头被关闭,如何打开笔记本麦克风和摄像头。
  17. 运算符、||运算符、?.可选链运算符、? ?空位合并运算符
  18. 如何订到超便宜的机票
  19. Called attach on a child which is not detached
  20. wget安装MySQL(5.6和5.7超详细版)

热门文章

  1. 邮件传输的过程都看不懂。那我走(狗头)
  2. Java Web学习day25------Vue和综合案例
  3. SpringMVC上传图片报400
  4. 读书报告1500字计算机大学篇,大学生读书报告1500.doc
  5. 系统运维工程师面试的11大热门问题
  6. leetcode402. 移掉 K 位数字
  7. mysql报错不停止继续执行_mysql 8 启动失败(本地计算机上的mysql服务启动后停止。某些服务再未由其他服务或程序使用时将自动停止)...
  8. 应急响应--记录一次漏洞紧急处理中意外发现的挖矿木马(Shiro反序列化漏洞和ddg挖矿木马)...
  9. HDU - 6438 Buy and Resell (贪心 + 优先队列)
  10. 十行 Python 代码就提取了韦小宝的身份证信息!