Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
无效参数:隔离消息中的非法参数:(对象是aReceivePort)
我不确定我在这段代码中是否做错了什么 但我在生成新隔离时显然传递了 SendPort 但是当我调用时 Infrastructure instance initialize 我收到以下异常 Invalid argument s Illegal
dart
spawn
dartisolates
Dart - 隔离跨窗口通信
Dart 隔离是否可以进行跨窗口通信 这是我的场景 用户在浏览器窗口 A 中打开网站 窗口 A 生成一个新的隔离 然后 用户单击一个链接 该链接将创建一个新选项卡并打开浏览器窗口 B 假设该链接位于同一域中 等等 浏览器窗口 B 可以从浏览
dart
dartisolates
错误状态:BackgroundIsolateBinaryMessenger.instance 值在执行BackgroundIsolateBinaryMessenger.ensureInitialized 之前无效
static getMaxId SendPort sendPort async ApiService apiService ApiService var maxId await apiService getMId 1 sendPort se
flutter
dart
dartisolates
DART 隔离和线程之间的区别(Java、C#)
对我来说 DART Isolate 看起来像一个具有不同术语的线程 Java C Isolate 与 Thread 在哪些方面不同 线程使用共享内存 而隔离则不使用 例如 以下伪代码在 Java C 中 class MyClass stat
dart
dartisolates
Dart Isolates 的暂停功能未按预期工作
我一直在玩飞镖分离物 https api dartlang org stable 1 24 3 dart isolate Isolate class html并在使用时遇到了问题isolate pause 功能 import dart io
dart
concurrency
dartisolates
从隔离函数调用异步函数
我正在尝试从 Isolate 函数调用异步函数 class IsolateExample final ReceivePort port new ReceivePort IsolateExample Isolate spawn isolate
flutter
dart
dartisolates
如何修复此哨兵区不匹配错误?
框架 SDK版本 Flutter 3 10 4 Dart 3 0 3 这是我的main code Future
flutter
dart
Sentry
dartisolates
Dart 作为 Worker 进行隔离
编辑以使问题更清楚 我正在尝试在 Dart 中使用 Isolates 或 Web Workers 我能找到在主线程和隔离线程之间进行通信的唯一方法是send and 打电话然后从主线程 但这是主线程将一些数据传递给隔离的好方法 如果我希望分
Communication
dart
dartisolates
Dart / Flutter:Isolate 顶级函数的异步行为
哎呀好人 我遇到了奇怪的行为 当异步使用isolate的顶层函数时 你可以找到示例代码HERE https github com iapicca isolates logging 但简而言之 as 隔离的顶级功能这有效 String syn
dart
flutter
asyncawait
Future
dartisolates
Flutter 可以使用compute() 将对象作为消息“发送”吗?
所以我基本上有一个简单的课程update 方法 但正因为如此update 方法做了一些数学计算 我想用compute 让它在另一个中运行Isolate 计划是运行update 方法中的Isolate并返回更新后的对象 如下所示 comput
flutter
dart
dartisolates
有关 Dart 隔离的最新文档
我最近开始使用 Dart www dartlang org http www dartlang org 并且到目前为止真的很喜欢它 一个非常有前途的功能是隔离 但我不确定如何开始 到目前为止我找到的文档来自重大更改之前 重大变更 dart
dart
webworker
dartisolates
如何将参数(除了 SendPort)传递给 Dart 中生成的隔离
In 本文 https www raywenderlich com 10971345 flutter interview questions and answers 他们产生了这样的分离株 import dart isolate void
dart
dartisolates
如何使用多个隔离来服务请求
如何设置 Dart 服务器以使用所有可用核心来处理即将到来的请求 例如 通过使用多个隔离来服务请求 Use the shared true的论证HttpServer bind 例子 import dart io import dart is
dart
dartio
dartisolates
当隔离被杀死时,颤振隔离内的计时器不会停止
我有一个应用程序使用 API 调用将操纵杆位置数据上传到网络服务器 当操纵杆移动时会调用此方法 如果操纵杆不在中心 它将停止任何先前运行的隔离并启动新的隔离 void onJoystickMoved double angle double
flutter
dart
dartisolates
库“dart:isolate”中是否有 dart 的 `spawnUri(...)` 示例?
有一个spawnUri uri 函数于dart isolate 但我没有找到任何例子 我猜到了它的用法 但失败了 假设有2个文件 在第一个文件中 它会调用spawnUri对于第二个 并与之沟通 首先 dart import dart iso
dart
dartisolates
Flutter中Completer和Isolates的解释和区别
我需要在我的应用程序上返回一个 Future 因为我认为我的函数需要太多时间才能完成 所以我有两个可能的答案 使用完成者 or an Isolate 是什么让我选择其中之一 我可以将 Completer 放在我想要的任何地方并相信它会正常工
flutter
dart
dartisolates