Trying out Dart's new Isolate.run() method

Описание к видео Trying out Dart's new Isolate.run() method

Dart is a single-threaded language by default. This makes programming easy but also limited. In case we need more than one thread then we can use the Isolates which can compute on another thread. So far, in order to create a new #isolate we had to use the Isolate.spawn() method and take care of setting up communication ports. In #Dart 2.19 there is a new simpler method added that will work for certain use cases. In this video, I'm looking into it.

Комментарии

Информация по комментариям в разработке