• ClipSaver
  • dtub.ru
ClipSaver
Русские видео
  • Смешные видео
  • Приколы
  • Обзоры
  • Новости
  • Тесты
  • Спорт
  • Любовь
  • Музыка
  • Разное
Сейчас в тренде
  • Фейгин лайф
  • Три кота
  • Самвел адамян
  • А4 ютуб
  • скачать бит
  • гитара с нуля
Иностранные видео
  • Funny Babies
  • Funny Sports
  • Funny Animals
  • Funny Pranks
  • Funny Magic
  • Funny Vines
  • Funny Virals
  • Funny K-Pop

Why You Need To Use Coroutines in Android and How | MVVM Example скачать в хорошем качестве

Why You Need To Use Coroutines in Android and How | MVVM Example 4 года назад

скачать видео

скачать mp3

скачать mp4

поделиться

телефон с камерой

телефон с видео

бесплатно

загрузить,

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Why You Need To Use Coroutines in Android and How | MVVM Example
  • Поделиться ВК
  • Поделиться в ОК
  •  
  •  


Скачать видео с ютуб по ссылке или смотреть без блокировок на сайте: Why You Need To Use Coroutines in Android and How | MVVM Example в качестве 4k

У нас вы можете посмотреть бесплатно Why You Need To Use Coroutines in Android and How | MVVM Example или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:

  • Информация по загрузке:

Скачать mp3 с ютуба отдельным файлом. Бесплатный рингтон Why You Need To Use Coroutines in Android and How | MVVM Example в формате MP3:


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



Why You Need To Use Coroutines in Android and How | MVVM Example

In this video Learn how to use Coroutine with Retrofit and MVVM Become an amazing Android Developer: https://bit.ly/3l6vG86 Free Android Download here: https://page.tutorials.eu/android What is Coroutine In Android executing a long-running operation like network calls, database operations or large computations blocks the *Main thread* which happens to be the *UI thread* responsible for rendering the UI widgets that the user can see. To avoid blocking the main thread we need to run these long-running operations on a separate thread outside of the main thread which is known as background thread. This is where Coroutine and multi-threading come in. Coroutine basically simplifies asynchronous programming on android and allows operations to run without blocking the main thread. Lets look at some examples from the previous parts of the series: This is a method to fetch *rick and morti characters* from an ApiService, this process is going to block the UI thread because it is been performed over a network call and we don't want this to happen that is why we used the built in Callback in the Retrofit library to execute it on the background thread. But we can make this function shorter and more readable with the use of Coroutine Modify the project to use Coroutine Now let's modify this project to use Coroutine. This is the third part of two previous lessons, if you are new to Retrofit and MVVM then you need to check out the part one and two. To use coroutines and the built-in scopes we add the following dependencies Now let us modifier the method definition in the ApiService to use coroutine To make fetchCharacters use coroutine, first, we added the suspend modifier at the beginning of the function then we remove the Call interface from the return type. Back to the repository, we will have an error This is because the suspend function can either be called in another suspend function or a coroutine scope so we need to also add a suspend function to this method. Coroutine Scope To finally execute this function we need a coroutine scope. Coroutines follow a principle of structured concurrency which means that new coroutines can only be launched in a specific CoroutineScope. If you create a scope and don't clear it at the end of the operation it can cause a memory leak and you wouldn't want that. In android, there is a built-in scope that can be used for specific classes. viewModelScope - This is scoped to the ViewModel class so that a coroutine automatically gets canceled when the ViewModel class is cleared. lifecycle scope- This is scoped to Activities and Fragments so a coroutine launched by it gets canceled when they are destroyed. You can also create your own scope, create a job and attach it to the scope so that you can call cancel on the job once the execution is completed. tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers. This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc. Stay tuned and subscribe to tutorialsEU: https://goo.gl/rBFh3x

Comments
  • Build your first REAL Android App in 20 minutes! - People Counter 4 года назад
    Build your first REAL Android App in 20 minutes! - People Counter
    Опубликовано: 4 года назад
  • 5 секретов корутин Kotlin, о которых я хотел бы знать раньше 1 год назад
    5 секретов корутин Kotlin, о которых я хотел бы знать раньше
    Опубликовано: 1 год назад
  • NULLABLES, ELVIS Operator and NOT NULL Assertion in Android KOTLIN 3 года назад
    NULLABLES, ELVIS Operator and NOT NULL Assertion in Android KOTLIN
    Опубликовано: 3 года назад
  • Your First Android Studio Project - Understanding The User Interface 4 года назад
    Your First Android Studio Project - Understanding The User Interface
    Опубликовано: 4 года назад
  • Как забрать свои деньги из банка? Банки могут запретить снимать наличные? | Дмитрий Потапенко* 3 дня назад
    Как забрать свои деньги из банка? Банки могут запретить снимать наличные? | Дмитрий Потапенко*
    Опубликовано: 3 дня назад
  • 14 ГЛАВНЫХ НЕЙРОСЕТЕЙ 2025 ГОДА 2 дня назад
    14 ГЛАВНЫХ НЕЙРОСЕТЕЙ 2025 ГОДА
    Опубликовано: 2 дня назад
  • Это должно было умереть, но стало стратегией 1 день назад
    Это должно было умереть, но стало стратегией
    Опубликовано: 1 день назад
  • Структура файлов и каталогов в Linux 4 года назад
    Структура файлов и каталогов в Linux
    Опубликовано: 4 года назад
  • Самые важные паттерны в программировании 3 дня назад
    Самые важные паттерны в программировании
    Опубликовано: 3 дня назад
  • Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория 2 года назад
    Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория
    Опубликовано: 2 года назад
  • Почему Азовское море — самое опасное в мире 4 дня назад
    Почему Азовское море — самое опасное в мире
    Опубликовано: 4 дня назад
  • What you NEED to know about IF ELSE statements - Android KOTLIN 3 года назад
    What you NEED to know about IF ELSE statements - Android KOTLIN
    Опубликовано: 3 года назад
  • Hello World in Android Studio 2021 - Your First App 4 года назад
    Hello World in Android Studio 2021 - Your First App
    Опубликовано: 4 года назад
  • Полная мобилизация с 1 января: ТЦК готовятся к тотальной охоте на мужчин по всей стране! 3 дня назад
    Полная мобилизация с 1 января: ТЦК готовятся к тотальной охоте на мужчин по всей стране!
    Опубликовано: 3 дня назад
  • Забудь VS Code — Вот Почему Все Переходят на Cursor AI 1 месяц назад
    Забудь VS Code — Вот Почему Все Переходят на Cursor AI
    Опубликовано: 1 месяц назад
  • Вам НУЖНО попробовать Hyprland на Linux ПРЯМО СЕЙЧАС | Hyprland для новичков, эпизод 1 1 год назад
    Вам НУЖНО попробовать Hyprland на Linux ПРЯМО СЕЙЧАС | Hyprland для новичков, эпизод 1
    Опубликовано: 1 год назад
  • Русский след и Майкл Джексон. Чем примечателен новый компромат на Трампа 16 часов назад
    Русский след и Майкл Джексон. Чем примечателен новый компромат на Трампа
    Опубликовано: 16 часов назад
  • What you need to know about ARITHMETIC OPERATORS - Android KOTLIN 3 года назад
    What you need to know about ARITHMETIC OPERATORS - Android KOTLIN
    Опубликовано: 3 года назад
  • Как взломать любое программное обеспечение 2 месяца назад
    Как взломать любое программное обеспечение
    Опубликовано: 2 месяца назад
  • Интернет в небе: Сергей 5 дней назад
    Интернет в небе: Сергей "Флеш" о том, как «Шахеды» и «Герберы» научились работать в одной связке
    Опубликовано: 5 дней назад

Контактный email для правообладателей: [email protected] © 2017 - 2025

Отказ от ответственности - Disclaimer Правообладателям - DMCA Условия использования сайта - TOS



Карта сайта 1 Карта сайта 2 Карта сайта 3 Карта сайта 4 Карта сайта 5