Isolates in Flutter | Dart Isolate Tutorial - Run tasks in background using Isolates | Multitasking

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

  • @mageshk1849
    @mageshk1849 2 หลายเดือนก่อน +1

    A crystal clear explanation which i needed 👏

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

    I hava a scenio in udemy like app in which i have to post a large size video .But it will hang the UI .I think isolate is good for this scenario .As per my knowledge their is a high level isolate API( compute() ) finction .That will take care of spawn run and other things .We just have to give our finction .

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

    Very nice tutorial to understand the concept of isolates.... if apps goes in to the background or in active if the task will continue its work ?

  • @dj.yacine
    @dj.yacine ปีที่แล้ว +1

    Can we use it with http package to make requests and get big response?

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

      Since isolates run on its own event loop, it is not recommended using it for basic api calls. As isolates are isolated, the subsequent code may not wait for response data. So it is sufficient to make use of Futures to do the same task concurrently rather than going for parallelism.

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

    is it work even
    we close the app?