Learn Isolates in Flutter | Simplified - Part 2

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • In this video I have demonstrated how to pass parameter to Isolate.
    You can use custom object to warp data into single object and pass to Isolate. This step can be simplified with Record type.
    Previous video:
    • Learn to use Isolates ...
    To know more about Records:
    dart.dev/langu...
    GitHub Repo:
    github.com/afz...
    If you like my work
    Support Me on Ko-Fi : ko-fi.com/afza...
    Join this channel to get access to perks:
    www.youtube.co...
    Gears ========
    Camera 📸 || Canon 250D : amzn.to/34isdKr
    Mic 🎤 || Maono AU-04 : amzn.to/341g9wS
    #CodeX
    Connect with me on social media:
    FB: / codexdevs
    Twitter: / afzalali_dev
    LinkedIn: / afzalali15
    Discord: / discord

Комментарии • 7

  • @CodeXdev
    @CodeXdev  Месяц назад +1

    Part 1: ruclips.net/video/WFfaaLwLobA/видео.html

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

    Thank you for these two very excellent videos. For me the best of the year. It keeps my Flutter project running. Thanks again!
    But now - as an isolates expert 😎 - I miss "item 4":
    I would need up and down or send and receive communication via two streams! One stream for asynchronous serial sending, and one stream for asynchronous serial receiving through the same isolate thread.

  • @ahmedabdaa3468
    @ahmedabdaa3468 27 дней назад

    How can i wait the response from the isolate like when i click the button i want to create loading the i get success or failure message

  • @mohsanikram3569
    @mohsanikram3569 Месяц назад

    Good video.
    But I have not found much content for the multithreading in Flutter.
    Basically I'm Android Developer and we are using Coroutines for handling the Main and IO threads easily. I'm looking for the same thing in Flutter. Can you please guide?
    Also I have some questions,
    1- Lets suppose my Isolate is running, how can I know it runnuing or stopped. Or how can cancel/stop the isolate when I closed that screen?
    2- How can we run API calls on the seperate IO thread?
    3- How can we run the Database operation on the seperate thread?

  • @manishgautam2424
    @manishgautam2424 Месяц назад

    can you please tell me how can i assign global config for any macro , for example equatable_macro package , a copy of equatable , here i want a global config like EquatableConfig

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

    Thank you for your video. I just wonder to know when we need to implement isolate? Any other condition except doing much looping?

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

      A long answer as to when which flutter technique must be used is here:
      ruclips.net/video/yUMjt0AxVHU/видео.html
      I need it because I need a time-sensitive and ongoing communication with an external device whose protocol still uses simple UDP with a proprietary handshake (no transaction-safe secure IP in the external device). The Isolate then communicates continuously to the outside using the complex protocol/handshake prescribed by the device. And accepts the app request from the app or delivers only the relevant extract and events to the Flutter app. This is also only possible if a separate thread=isolate exclusively takes care of this special protocol.