flutter 的 Isolate 在什么时候用到?

开发了几个 flutter APP 了,但是 Isolate 一次都没用到。哪些场景需要用到 Isolate?

希望有经验的大佬可以分享一下。

阅读 2.2k
1 个回答
A Dart isolate is roughly equivalent to a single, independent execution thread. In a Flutter context, creating ("spawning") an isolate allows code to execute outside the main thread, which is important for running expensive/long-running tasks that would otherwise block the UI

Isolate-class ,flutter_isolate

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题