Chapter 3 - Isolates - Free Dart Course 💙

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • Part of Free Dart Course playlist: • Free Dart Course 💙
    Isolates are a rarely-visited aspect of Dart which Flutter developers can also take advantage of in order to create smoother UI experienced for their users. Even the documentation for Isolate in Dart's official documentation is lacking some fundamentals of how Isolate works in Dart and how you can use it.
    In this chapter we will look at using Isolate in Dart in order to greatly increase the performance of our applications.
    🐦 Twitter: / vandadnp
    🔵 LinkedIn: / vandadnp
    🤝 Want to support my work? buymeacoffee.c...

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

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

    The BEST explanation EVER, thanks a lot

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

    Best Isolate tutorial with me, many thanks :)

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

      You're very welcome and thank you for your support 💙

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

    Nice work.
    Can you also cover design patterns and clean architecture in the future?

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

      I was going to request Clean Architecture from him too...
      It would be really helpful if you make a playlist on it too.

    • @VictorOnMobile
      @VictorOnMobile 3 หลายเดือนก่อน

      up

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

    Great video. looking forward to the Future & Stream videos

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

    Thanks for the video it is awesome, thank you for the time you put in it, merci beaucoup

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

      Glad you liked it!

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

    thanks Vandad!

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

    Thanks

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

      No problem

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

    Thank you very much.

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

    Awesome. Thanks

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

    Great content. Thank you

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

      You’re most welcome brother

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

    Very nice. Much appreciated.
    For flutter web, I must create workers instead of isolates.
    Does this mean I have to use JS, or is there a dart way ?
    I realise JS and dart are very similar, but I'd rather stick to dart...

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

    Great video. Is there a way to pass an argument to the isolate function together with SendPort?

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

      You can create a class which will be having sendPort as one of its instance variables and other data that you need to pass.
      As the isolate's main function can have only one argument, so you can use this approach to pass multiple data points to your isolate's main function.

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

    Thanks for the video. At 1:10:31 why not just spawn your isolate, and then return rp.takeWhile((e) => e is Iterable).cast(); ? The result would be the same would it not?

  • @VictorOnMobile
    @VictorOnMobile 3 หลายเดือนก่อน +1

    up

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

    ❤️❤️❤️🤩

  • @benny-shen
    @benny-shen 2 ปีที่แล้ว

    what's the difference between using async directly and using isolates?

    • @Sergey-fc8gv
      @Sergey-fc8gv 2 ปีที่แล้ว

      I believe the difference is that using `async` doesn't make your code run in a separate event loop, and can potentially freeze UI.

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

    and if I want to use several functions in a chrono for example Start() stop() and reset() , must I use another isolate?

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

      No need to do that. You won't even need an isolate to do a stop watch tbh

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

    could isolate can avoid my stopwatch being killed when I press the back button?

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

      You don't necessarily need an isolate to create a stop watch

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

    ❤️❤️❤️🤩