U-os - Tổng hợp hàng loạt tin tức số 1 cộng đồng cực hay
  • Home
  • Bất Động Sản
  • Công Nghệ
  • Kinh Doanh
No Result
View All Result
  • Home
  • Bất Động Sản
  • Công Nghệ
  • Kinh Doanh
No Result
View All Result
U-os - Tổng hợp hàng loạt tin tức số 1 cộng đồng cực hay
No Result
View All Result

Understand Kotlin Coroutines on Android (Google I/O'19)

admin by admin
March 23, 2020
in Công Nghệ
20
Understand Kotlin Coroutines on Android (Google I/O'19)



Coroutines are a feature of Kotlin that help convert callback-based code into sequential code, making code easier to read, write, and understand. This session will show you how to use coroutines on Android, and how the new androidx-concurrent library makes it easy to use them to get things off the main thread. You’ll also learn how the new library helps coroutines work with Architecture Components. This session also covers coroutine patterns, best practices, and even how to test coroutines!

Watch more #io19 here:
Android & Play at Google I/O 2019 Playlist →
Google I/O 2019 All Sessions Playlist →
Learn more on the I/O Website →

Subscribe to the Android Developers Channel →
Get started at →

Speaker(s): Yigit Boyar, Sean McQuillan, Sergey Vasilinetc

TF7514

Nguồn:https://u-os.org/

Xem thêm Bài Viết:

  • Hướng dẫn cách lắp anten ngoài trời đúng kỹ thuật, thu sóng khỏe nhất
  • Giải đáp bí ẩn Xamarin là gì? Ưu và nhược điểm khi sử dụng Xamarin
  • Tuyệt chiêu sửa lỗi window photo viewer can’t open this picture because
  • Bộ nhớ đệm là gì? Có nên xóa bộ nhớ đệm trên thiết bị không?
  • Bật mí 3 cách chụp ảnh bằng máy tính win 7 dễ như ăn kẹo
Tags: Youtube
Previous Post

TXT - SAM BIỂN NƯỚNG MỞ HÀNH : CÁC PHÂN BIỆT CON SAM VÀ CON SO

Next Post

Ngư dân Cần Giờ bắt cặp SAM dính chặt không rời

Next Post
Ngư dân Cần Giờ bắt cặp SAM dính chặt không rời

Ngư dân Cần Giờ bắt cặp SAM dính chặt không rời

Comments 20

  1. Dexter Aparicio says:
    2 years ago

    I wonder how different is the problem domain, that they abandon any iota of similarity and feel of the usual POSIX synchronization primitives. I can see that the new lambda construct has a big role in this, but the whole thing is constructed in not-invented-here fashion

    Reply
  2. P Square says:
    2 years ago

    How do you guys test this much complicated scenarios?

    Reply
  3. Darko Martinović says:
    2 years ago

    Anybody else thought that that timer is sloppy programming? @20:36

    Reply
  4. Jesus Angulo says:
    2 years ago

    Kotlin discover async/await from C# #justKidding xD

    Reply
  5. Nguyen Xuan Lanh says:
    2 years ago

    thanks

    Reply
  6. Sina Rahimi says:
    2 years ago

    It would be great if they put the slides in somewhere

    Reply
  7. L. Kärkkäinen says:
    2 years ago

    These brand-spanking new coroutine concepts are explained in their inventor's blog https://vorpus.org/blog/timeouts-and-cancellation-for-humans/ Kudos to Kotlin team for adopting scopes, cancellation and testing concepts of Trio in such a comprehensive manner!

    Reply
  8. Дмитрий Толстов says:
    2 years ago

    why there is viewModelScope and no repositoryScope, or applicationScope. A lot of work done in reposiory calling db and network, I don't need viewModelScope because I return already-made livedata from repo. Also, there are a lot of work I would like to do during my app is running and ok with cancelling it when it's gone. I don't get it.. And there is still NewtorkBoundResource in App Arch Guide on android dev website… it's not thaht coroutiny.

    Reply
  9. Ankit Gusai says:
    2 years ago

    The goal is basically set at 4:26 but at the end of the video it feels like(as always) we are back to square one.
    On the hindsight making anything comprehensive and simple with fragment + activity with their lifecycles is incredibly complex. Throw in a service(Which connects asynchronously and has its own foreground limitations) that needs to be connected and you have to throw everything out of the window.

    Reply
  10. Matthieu Lucas says:
    2 years ago

    Best explanation of coroutines i've seen!

    Reply
  11. hitec16 says:
    2 years ago

    so many methods and so many scopes. It feels like patch work rather than a complete solution to handling thread calls and orientation changes. Specially in case of fragment. I am sure in future a lot more stuff will come to fix what is done right now. IMHO fragments itself should be re-written. For a beginner this is a very steep learning curve.

    Reply
  12. 70ME3E says:
    2 years ago

    10:23 : transforming to another representation from stack to whatever is used for supsendables and then back when resuming, and copying stuff sounds a bit comp intensive, I don't see why we couldn't build separate substacks for the suspendables in the main stack and switching into them and back when necessary. no copying and transforming involved. or am I dumb and threads couldn't manage that and point to other substacks like that temporarily?

    Reply
  13. SKtheGEEK says:
    2 years ago

    so tell me how does this work with MVVM which has a repo, viewmodel and view !!!!

    Reply
  14. Kroken Stiv says:
    2 years ago

    do you seriously think that coroutines are easier than mvp with rx? I was expecting something really easy but got frustrated.

    Reply
  15. Ar Na says:
    2 years ago

    Sorry but worst talk ever. I could not be anymore confused.

    Reply
  16. Weedy Beats says:
    2 years ago

    Coroutines are horrible. They are complicated. They don't throw an readable and understandable error to the console when something goes wrong (and something WILL go wrong). They don't allow UI changes.

    Reply
  17. M Dapp says:
    2 years ago

    Looking at the actual code of the LifecycleCoroutineScope, I don't think it works the way they claim. Specifically, I don't see any code that would cause coroutines started with 'launchWhenStarted' to suspend when the state is < STARTED. The only thing LifecycleCoroutineScope seems to actually do is cancel when the lifecycle owner is DESTROYED. I'm wondering how much of this talk is actually useable…

    Reply
  18. Maarttttt says:
    2 years ago

    Sorry but who are these developers you guys are supposedly talking to? How many completely different async solutions are there now for Android? Like 30? Do all these developers constantly want to learn new ways to perform async tasks?

    Reply
  19. Manthra Solutions says:
    2 years ago

    Yes

    Reply
  20. DiegoTube85 says:
    2 years ago

    I don't get how Coroutines are presented as an "easy" solution.. They are very hard instead to use properly. I'm trying get it but it's far from easy.. Am I the only one?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Hệ thống hạ tầng giao thông góp phần đã thúc đẩy bất động sản Đồng Nai phát triển.

ĐỒNG NAI NHIỀU TIỀM NĂNG PHÁT TRIỂN DỰ ÁN LỚN

June 21, 2022
Vị trí Bien Hoa New Town

Top 14 dự án bất động sản đang triển khai tại Đồng Nai

June 21, 2022

Dự án chung cư ở Biên Hòa

June 10, 2022
Vinhomes Hưng Yên

The Empire Vinhomes Hưng Yên – Khu đô thị sinh thái đáng sống nhất 

April 15, 2022
Vườn treo tại dự án Five Star Garden

Top 16 dự án chung cư tốt nhất quận Thanh Xuân – Hà Nội  

February 27, 2022
Mức phạt cho người bán đất Cần Giờ không sang tên Sổ đỏ

Mức phạt cho người bán đất Cần Giờ không sang tên Sổ đỏ

January 6, 2021
  • Giới Thiệu
  • Liên Hệ
  • Chính Sách Bảo Mật

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Bất Động Sản
  • Công Nghệ
  • Kinh Doanh

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.