dart-isolates Questions

2

Solved

We are working on an encrypted chat application where we use Firebase Messaging for data notifications. Some client-side logic needs to be done upon receiving a data notification, before showing an...

1

Solved

Is it possible to use BuildContext inside compute function? Future<int> getFuture() async { int r = await compute(count, context); return r; } static int count(BuildContext context) { //...
Afar asked 10/11, 2019 at 19:50

0

i'm working on a flutter app, which displays a lot of images of unknown aspect-ratio in a list (among other things) to improve the UX a row with an image displays the original image with a blurred...
Baines asked 6/9, 2019 at 18:27

1

I'm creating an app that fetches posts from the internet as json. I parse the json into Post objects in flutter using a factory. A Post object includes a title, body and image. I display these post...
Staciastacie asked 17/2, 2019 at 17:17

1

I am using dart isolates to play music in background. I want to get the instance of the isolate that I spawned earlier to stop the music after closing and re-opening the Flutter App. Is there a way...
Prothalamion asked 31/1, 2019 at 9:36

2

Solved

I'm trying isolates and I'm wondering how could I spawn some of them doing heavy computations that, when the root Isolate ask them for their current computing value they respond it, "on demand". A...
Chapin asked 10/9, 2018 at 14:20

1

Solved

I've been playing around with Dart Isolates and have run into a problem using the isolate.pause(); function. import 'dart:io'; import 'dart:isolate'; main(){ ReceivePort receivePort = new Receiv...
Lakitalaks asked 6/1, 2018 at 18:5

4

Solved

Edited to make the question more clear. I am trying to work with Isolates (or Web Workers) in Dart. The only ways I can find to communicate between the main and isolate threads are send and call &...
Mireillemireles asked 24/4, 2012 at 16:44

1

Solved

I want to dynamically construct and load a Dart script. How do I do this? I know I can use Isolate.spawnUri to dynamically load a Dart script. However, I'm only aware that I can load from file: an...
Booby asked 26/5, 2015 at 17:43

2

Solved

I'm trying to track whether the isolate is currently running or not (and in the future whether it has errored out) using isolate.addOnExitListener(...). However, the following snippet of code is no...
Yovonnda asked 25/3, 2015 at 4:19

2

Solved

I am trying to understand how I shall port my Java chess engine to dart. So I have understood that I should use an Isolates to run my engine in parallell with the GUI but how can I force the engin...
Chequerboard asked 10/5, 2013 at 23:25

1

Solved

I'm currently working with isolates to send queries in parallel to a database server. I have a connector-object to build the connection to the database and I would like to share that across all iso...
Paraglider asked 22/8, 2014 at 18:6

4

Solved

There is a spawnUri(uri) function in dart:isolate, but I don't find any example. I have guessed its usage, but failed. Suppose there are 2 files, in the first one, it will call spawnUri for the 2n...
Embryo asked 25/6, 2013 at 14:6

1

Solved

I am trying to use dart isolate library to improve my application performance. Look at following code: import 'dart:isolate'; import 'package:dbcrypt/dbcrypt.dart'; main() { var pwConPort =...
Isolating asked 3/7, 2014 at 9:50

2

Solved

From what I have understood, Dart isolate is like Akka actors. However, what I couldn't figure out is if dart:isolate serves similar purpose as Akka does. Is there a fundamental difference between...
Breathtaking asked 10/4, 2014 at 16:13

3

Solved

Question Will isolates in Dart run in parallel utilizing all available cores on a multiple core environment, or will it multiplex on a single core? Background Google has described isolates (a singl...
Relive asked 6/7, 2012 at 13:59

1

Solved

is it possible to parse in a user entered string, say from a text area, and then incorporate it into a dart function which you can then run, without having to post it back to the server? I guess I'...
Radiometeorograph asked 16/9, 2013 at 14:29

1

Solved

I see that "Dart is a single-threaded programming language", so I think is it safe to use global variable to pass data between functions: var g = 1; main() { hello(); world(); } def hello() { ...
Sensualist asked 23/6, 2013 at 15:20

1

Solved

I have failed to debug isolates. I.e. the debugger does not stop on breakpoints in isolates. I assume that this is not supported at the moment and my question are. 1) Am I right in that debugging...
Turning asked 26/5, 2013 at 7:1

1

Solved

In Dart, there is a concept of Isolates. I have an application (that I'm experimenting in Dart) that has lots of asynchronous IO where each call (they are database calls) are dependent on the previ...
Indefatigable asked 7/2, 2012 at 21:34

© 2022 - 2024 — McMap. All rights reserved.