Isolates and multithreading in Flutter Part 2 (The Boring Flutter Development Show, Ep. 31)

preview_player
Показать описание
In the last episode, we dove into isolates and multithreading in Dart. In this episode of the Boring Show, Filip and Andrew finish the job, and make fetching of Hacker News articles execute on a separate thread from the UI thread.

Skip the intro → 3:03

#Flutter #BoringShow #AppDevelopment
Рекомендации по теме
Комментарии
Автор

The speed increase was an interesting experiment (though I'm glad this is back at normal speed). Perhaps now you've reached the stage of talking about Isolates, multi-threading and getting more work done in the same amount of time, some sort of split-screen simultaneous coding is in order? :D

amugofjava
Автор

Thank you guys for listening to the comments - And congrats on almost 100k subs!

SmashHighlights
Автор

hi what about the issue that andrew first mentioned (what if we call worker.fetchIds() two times in a row?? wouldn't he first request be ignored??) and can we wrapp Isolate.spawn() in a try/catch for when isolate coulnd be created(maybe be cuase of lack of cpu or RAM)??

rezahosseinypour
Автор

What a great episode ... as always. 🙂 I hope there will be more episodes about Isolates in the future. What was the reason for only fetching the ids in the worker isolate? The "_getArticles" part remains in the main isolate. Can that logic be executed from the worker isolate as well?

atanaspopatanassov
Автор

Is isolate lightweight? in java we could setup long running executorservice which is used to manage thread pooling and execute semi-lightweight tasks (I often use it to perform CRUD to local database). if i were to use compute (which setup and spawn isolate on every call) in such scenario how heavy would it be? would it be better to just call the async function without compute? understand from java thread creation is expensive but reusing thread is not.

rubyh
Автор

i guess we need a show for flutter web.

ajanieniola
Автор

Quick question how to / can i override the yellow lines or red error screen with my own widgets (if possible then demo it) in apk release ?

patrickwaweru
Автор

Couldn’t find first episode... is there any link for that?
Btw dear flutter developers is there any scholarships for Developers Congress in Polska that is coming in 2020 January?

akhmadjonismatov
Автор

Hi, what can I do to run a piece of platform channel code inside Isolate?
Please help me

amirhosseinmosalanegad
Автор

How can I change speed of movie , still don't know, I need explanation, how use touchscreen ?

tomurbaniak
Автор

Anyone have the memory issue with isolate in flutter? The memory keep growing when i running isolate and crash because of out of memory

hoangquynguyen
Автор

not everyone is a senior nerdy engineer as you guys most people watching this aren't junior yet please explain what u doing

putinninovacuna
Автор

Hey filip i just want an oppurtunity to meet you once.

cloudtechyy