I
I
IsaevDev2016-05-25 19:44:59
Dart
IsaevDev, 2016-05-25 19:44:59

Is there multithreading in Dart, like, for example, in Java?

I understand that there is isolate( somefunc() );
Is it possible to create an instance of a class and run it in a new thread, like Runnable in Java?
And if through isolate, then communication is only with the main thread, as I understand it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy Gul, 2019-12-07
@BlackHarold

Good evening. Despite the fact that the question was asked more than three years ago, the question is also relevant for developers who have just started to delve into the Dart language, and in the meantime the situation has not changed - Dart runs in one thread with all the ensuing consequences, such as for example: The application can hang during long execution, etc.
It is possible to implement multithreading emulation using asynchronous methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question