Dart Isolates - Flutter Basics

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 81

  • @IgorSilveira
    @IgorSilveira 4 ปีที่แล้ว +14

    I'm not even developing anything in Flutter right now and I still sat through this entire video 😅 Awesome tutorial man!

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว +1

      haha glad you enjoyed it igor :)

  • @LeagueRandomPlayer
    @LeagueRandomPlayer 4 ปีที่แล้ว +7

    Dude are you reading my mind? its like "oh man i have to learn isolates" and BOOM video, THANKS MAN!!!!

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว +2

      Haha glad I could help

    • @antogalli
      @antogalli 3 ปีที่แล้ว

      Google listen to you! .... Always!

  • @faizandarwesh7867
    @faizandarwesh7867 ปีที่แล้ว

    That's awesome. Your explanation is so precise and simple.

    • @tadaspetra
      @tadaspetra  ปีที่แล้ว

      Thank you so much 😊

  • @MokRockets
    @MokRockets 3 ปีที่แล้ว +4

    Basics basics basics, appreciate the simplicity. Thank you!

    • @tadaspetra
      @tadaspetra  3 ปีที่แล้ว

      That’s the goal. Thank you!

  • @PaulBrassington_flutter_expert
    @PaulBrassington_flutter_expert 3 ปีที่แล้ว +1

    Thanks from a Java developer who used threads and now using dart/flutter

  • @hawkybae
    @hawkybae 4 ปีที่แล้ว +2

    Appreciate you taking the time to cover this topic. Cheers!

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว +1

      I appreciate you watching 😊

  • @garoono
    @garoono 3 ปีที่แล้ว

    ur vdos tadas so amazing and simple to learn and exploring new topics makes it very intersting , and in the beginning little bit other than code appreciate ;]

  • @FilledStacks
    @FilledStacks 3 ปีที่แล้ว +3

    Dope! Quick, to the point and accurate. Subbed!

    • @tadaspetra
      @tadaspetra  3 ปีที่แล้ว +1

      Wow thank you FilledStacks!

  • @lpfboyka561
    @lpfboyka561 2 ปีที่แล้ว

    finally!! the best explaination and example i found for isolate... thanks bro

  • @calanm7880
    @calanm7880 2 ปีที่แล้ว

    Tadas, the YT algorithm is fantastically kind in recommending some videos I just need to watch: this is awesome cos it’s a subject I’ve shy-Ed away from, and you made it friendly and approachable 👍

    • @tadaspetra
      @tadaspetra  2 ปีที่แล้ว

      Thank you all mighty algorithm for showing my videos 😂

  • @ivanyoed
    @ivanyoed 4 ปีที่แล้ว +1

    Hey Tadas. Thank you for your tutorials, they're very well made and are always a great support when looking to perform new and better practices in our applications.

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Thank you so much! I really appreciate it 😊

  • @hafeez-rana
    @hafeez-rana ปีที่แล้ว

    nice explanation. thanks Tadas!

  • @purushottampk4530
    @purushottampk4530 4 ปีที่แล้ว +3

    Excellent 👍 Love from india

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว +1

      Thank you! Cheers!

  • @yashraut19
    @yashraut19 4 ปีที่แล้ว +1

    Great i heard about isolates for the first time ! And as always nice tutorial

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Awesome! It is good to know they exist in case you ever need it 😊

  • @tibfox
    @tibfox 3 ปีที่แล้ว

    Greeeeeat explaination! Thank you so much :) I wanna execute some custom logic which takes much time including multiple rest api calls inside an isolate so I can use the app while this is running. You opened my mind and now I will hop and read more about the send/receive ports

  • @hamzaiqbal725
    @hamzaiqbal725 4 ปีที่แล้ว +3

    if you put your compress/decompress of large images or video editing logic in isolate you will feel good amount of difference in app's performance.

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Yes definitely. That’s a great use for it

  • @etion1999
    @etion1999 3 ปีที่แล้ว

    Thank you, Tadas!

  • @hoekbrwr
    @hoekbrwr 4 ปีที่แล้ว +3

    At least I learned now it exists! Might come in handy some time.

  • @aytunch
    @aytunch 4 ปีที่แล้ว +1

    Great video. Keep more coming.

  • @rebarius
    @rebarius 4 ปีที่แล้ว +1

    Finally someone explained It easily in code ❤️ thx :)

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว +1

      Glad I could help 😊

  • @harysuryanto
    @harysuryanto 2 ปีที่แล้ว

    Very good explanation

  • @blank-vw2sb
    @blank-vw2sb 4 ปีที่แล้ว +2

    Everyone reading this comment,
    If you haven't left a comment, DO it.
    TH-cam algorithm looks for video engagement. Help this awesome video reach the people who would appreciate it.

  • @SEGVeenstra
    @SEGVeenstra 3 ปีที่แล้ว

    Thank you, just what I needed!

  • @NaraAIApp
    @NaraAIApp 4 ปีที่แล้ว

    Thanks Man, your explanation is best. REALLY REALLY REALLY HELPFUL.

  • @saqib399
    @saqib399 ปีที่แล้ว

    Thanks. From the official docs it seemed like out of my scope concept. 😅

  • @blank-vw2sb
    @blank-vw2sb 4 ปีที่แล้ว +1

    All I can say is it's awesome.
    ❤️

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว +1

      Thank you 😊

  • @jalalhannan3243
    @jalalhannan3243 4 ปีที่แล้ว +1

    This is great!

  • @abdulsalamaljamal7768
    @abdulsalamaljamal7768 3 ปีที่แล้ว

    clear and simple thanks man

  • @Amandeep-kq5bz
    @Amandeep-kq5bz 4 ปีที่แล้ว +1

    Awesome video

  • @danumichael2143
    @danumichael2143 4 ปีที่แล้ว +1

    Great video. Thanks a lot

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Thank you for watching

  • @YouhanaSheriff
    @YouhanaSheriff 3 ปีที่แล้ว

    u really r a great instructor

    • @tadaspetra
      @tadaspetra  3 ปีที่แล้ว

      Thank you so much 😊

  • @abraiyan7984
    @abraiyan7984 4 ปีที่แล้ว +1

    Things no one is taking about. Thanks man.

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Thank you for watching!

  • @victorozigbu1594
    @victorozigbu1594 ปีที่แล้ว

    Heyy Tadas, thank you for the explanation, please can you also explain how to use the flutter blue plus package 🙏

  • @fluttterdev1k
    @fluttterdev1k 9 หลายเดือนก่อน

    the best

  • @akshay6019
    @akshay6019 4 ปีที่แล้ว +2

    I once used isolate to generate blurhash.

  • @rodrigogaxiola9146
    @rodrigogaxiola9146 4 ปีที่แล้ว +1

    Good!

  • @akshaybengani
    @akshaybengani 3 ปีที่แล้ว

    I have to make multiple network calls in flutter and none of them will bring some data back to me, they are just for sending some data continuously somewhere and don't require async/await, they are also not a priority task even if they fail or comes error I don't care.
    I need to know if I don't use async await before a network call, how does it work in the flutter event loop does it wait and reduce UI performance
    Should I run them in separate Isolate threads or the event loop will process these events without dropping performance,

  • @DartMitai
    @DartMitai 4 ปีที่แล้ว +1

    thanks, what are your plans for the next videos?
    maybe you can show shelf+angulardart+postgresql+gRPC. Or is it too much?

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Those are some big topics. But soon I am planning to expand to not just flutter but coding overall

    • @DartMitai
      @DartMitai 4 ปีที่แล้ว +1

      @@tadaspetra this is a really big topic, but also a unique one, because 99% of pseudo dart programmers read about this combination and run away in fear, it is more difficult than shooting content under a carbon copy about flutter

  • @jrheisler
    @jrheisler 4 ปีที่แล้ว +1

    Cool, I assume it would be very important if you were doing some server side dart. A lot simpler than I thought. Thanks!

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว +1

      Would definitely be important for that, and glad to help 😊

  • @FantasyOR
    @FantasyOR 3 ปีที่แล้ว

    Hi. how do you call "runCompute" function? do you use "await" or not?

  • @ITPROFESSIONAL
    @ITPROFESSIONAL 4 ปีที่แล้ว

    made please another video for explaining recieveport and sendport and controlling the isolate. thanks

  • @LMrc534
    @LMrc534 2 ปีที่แล้ว

    do I go through an isolate to run a foreground task?

  • @SuperHansburger93
    @SuperHansburger93 4 ปีที่แล้ว +1

    Can you use Isolate to do asynchronous rendering (like React's concurrent mode)?
    Like if I have a very large list to render with very complex items, can I prerender them in an Isolate to keep my UI responsive in the meantime?

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Damn. That's a good question. I feel like it should be possible, but I have not worked with this. Some one else has commented on the video saying they used it for blurhash which may be related. I am not sure

  • @techstudio7331
    @techstudio7331 4 ปีที่แล้ว +1

    Thankyou AC 😎,
    Maybe ffi in easy manner just like this, next time?

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      I’ll check it out

  • @edinliu9556
    @edinliu9556 3 ปีที่แล้ว

    Why isolateFunction can't be async function?

  • @user-uq7zx5nc3t
    @user-uq7zx5nc3t ปีที่แล้ว

    Hey Tads, how ya doin?
    My flutter app is kind of awesome, and works great on my M1 ipad.
    Unfortunately, in a browser, it really sucks. Lots of IndexDB access, because I built it for offline first.
    Store users data collections as json and byte lists locally.

  • @kashishkhullar9542
    @kashishkhullar9542 3 ปีที่แล้ว

    Hey man. Thanks for this video. I am working on an app that makes REST calls in in separate isolate and I want it to continue when the app goes to background. But what I wanna achieve is that when the app comes back to foreground or I open the app again, then I do not want the isolate to run. I want to terminate it and before closing the app, I want to restart it. Is there a way to get the instance of the isolate or some kind of id or identifier to get access to an already running isolate and then send messages to it or kill it. And if there is what is the best way to save such id or instance of the isolate.
    Appreciate your help.

    • @tadaspetra
      @tadaspetra  3 ปีที่แล้ว

      Not too sure about this. I haven’t dived deep into isolates since this video. Maybe you can ask in the discord link in description

  • @amircodes
    @amircodes 2 ปีที่แล้ว

    Sir, could you please create a video on the future of Flutter for new developers that wants to switch to. Companies are talking about Kotlin KMM. But why Google associate this huge resource and effort to bold flutter more and more. It doesn't make sense if google would abandon Flutter. I hope you see this comment.

  • @talatkuyuk6556
    @talatkuyuk6556 4 ปีที่แล้ว +1

    How do you know that kind of edge features, really I aploud you.

    • @tadaspetra
      @tadaspetra  4 ปีที่แล้ว

      Haha I do a lot of research before these 😊

  • @rebarius
    @rebarius 2 ปีที่แล้ว

    Isolate isn't working for web 😭

  • @mruduladdipalli5417
    @mruduladdipalli5417 3 ปีที่แล้ว

    Go to video for Isolates

    • @tadaspetra
      @tadaspetra  3 ปีที่แล้ว +1

      thank you so much!

  • @xamael1989
    @xamael1989 2 ปีที่แล้ว

    Thanks but can you show this in general context without using flutter

    • @tadaspetra
      @tadaspetra  2 ปีที่แล้ว +1

      Most languages have a different approach than this. But I might be able to make a video about general multi threading

  • @haidermajid2935
    @haidermajid2935 4 ปีที่แล้ว

    Speak you me please my friend