Dart Isolates - Flutter Basics

Поделиться
HTML-код
  • Опубликовано: 13 янв 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!

  • @MokRockets
    @MokRockets 3 года назад +4

    Basics basics basics, appreciate the simplicity. Thank you!

    • @tadaspetra
      @tadaspetra  3 года назад

      That’s the goal. Thank you!

  • @hawkybae
    @hawkybae 4 года назад +2

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

    • @tadaspetra
      @tadaspetra  4 года назад +1

      I appreciate you watching 😊

  • @FilledStacks
    @FilledStacks 3 года назад +3

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

    • @tadaspetra
      @tadaspetra  3 года назад +1

      Wow thank you FilledStacks!

  • @faizandarwesh7867
    @faizandarwesh7867 Год назад

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

  • @purushottampk4530
    @purushottampk4530 4 года назад +3

    Excellent 👍 Love from india

  • @lpfboyka561
    @lpfboyka561 2 года назад

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

  • @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 ;]

  • @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!

  • @etion1999
    @etion1999 3 года назад

    Thank you, Tadas!

  • @PaulBrassington_flutter_expert
    @PaulBrassington_flutter_expert 3 года назад +1

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

  • @SEGVeenstra
    @SEGVeenstra 3 года назад

    Thank you, just what I needed!

  • @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 😊

  • @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 😂

  • @harysuryanto
    @harysuryanto 2 года назад

    Very good explanation

  • @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.

  • @blank-vw2sb
    @blank-vw2sb 4 года назад +1

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

  • @danumichael2143
    @danumichael2143 4 года назад +1

    Great video. Thanks a lot

  • @NaraAIApp
    @NaraAIApp 4 года назад

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

  • @rebarius
    @rebarius 4 года назад +1

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

    • @tadaspetra
      @tadaspetra  4 года назад +1

      Glad I could help 😊

  • @abdulsalamaljamal7768
    @abdulsalamaljamal7768 3 года назад

    clear and simple thanks man

  • @blank-vw2sb
    @blank-vw2sb 4 года назад +2

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

  • @jalalhannan3243
    @jalalhannan3243 4 года назад +1

    This is great!

  • @YouhanaSheriff
    @YouhanaSheriff 3 года назад

    u really r a great instructor

  • @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

  • @abraiyan7984
    @abraiyan7984 4 года назад +1

    Things no one is taking about. Thanks man.

  • @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

  • @Amandeep-kq5bz
    @Amandeep-kq5bz 4 года назад +1

    Awesome video

  • @rodrigogaxiola9146
    @rodrigogaxiola9146 4 года назад +1

    Good!

  • @akshay6019
    @akshay6019 4 года назад +2

    I once used isolate to generate blurhash.

  • @saqib399
    @saqib399 Год назад

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

  • @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

  • @victorozigbu1594
    @victorozigbu1594 Год назад

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

  • @fluttterdev1k
    @fluttterdev1k 10 месяцев назад

    the best

  • @ITPROFESSIONAL
    @ITPROFESSIONAL 4 года назад

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

  • @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?

  • @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

  • @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,

  • @techstudio7331
    @techstudio7331 4 года назад +1

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

  • @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

  • @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.

  • @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 😊

  • @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.

  • @rebarius
    @rebarius 2 года назад

    Isolate isn't working for web 😭

  • @mruduladdipalli5417
    @mruduladdipalli5417 3 года назад

    Go to video for Isolates

  • @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