ietsist
Асинхронность и многопоточность в Dart/Flutter: Future, Stream и Isolates
При разработке Flutter-приложений быстро возникает необходимость выполнять долгие операции: загрузку данных из сети, обращение к базе, работу с файлами, вычисления и т.п. Если делать это синхронно, основной поток блокируется, интерфейс «зависает», а пользователь видит «замороженный» экран. Асинхронное программирование в Dart позволяет вынести такие операции из UI-потока, не блокируя интерфейс и сохраняя приложение плавным и отзывчивым. В данной статье мы расскажем, как во Flutter использовать ключевые инструменты асинхронности Dart — Future, async/await, Stream, а также многопоточность через Isolate — и покажем, как применять их на практике в реальных приложениях.
https://habr.com/ru/articles/974846/
#Dart #flutter #Асинхронность #Future #Stream #isolate #Многопоточность
I don't need a test, but I was curious to see the state of things, so I clicked on the "where to get tested for COVID-19" link from a public health website. I half expected it to be a broken link - but instead it took me to an Ontario Government site (screenshot attached).
It's still 🤯 that there are "eligibility requirements" to TEST to see if you have a highly contagious and damaging airborne disease.
Imagine if there were "eligibility requirements" to test for cancer?
#COVID #Ontario #PublicHealth #MaskUp #Isolate #Ventilate #CleanTheAir
A virus cannot #mutate if it cannot #incubate.
We know how to #mitigate the spread of COVID-19, but we #conflate and #complicate perceived rights and freedoms w/ public health #mandates and related precautions.
No one has the right to infect others.
No one has the freedom to be infected by another.
Keep your distance.
Wear appropriate face masks.
#Separate and #isolate accordingly.
Do not #equivocate.