Getting a HandlerThread. (Android Performance Patterns Season 5, Ep. 5)

50 078
30.2
Следующее
Популярные
65 дней – 16 7954:18
Flow layouts | Jetpack Compose Tips
Опубликовано 22 марта 2016, 17:00
While AsyncTask is the most useful threading class you can use, there’s some situations where it just doesn’t make sense. For example, AsyncTasks aren’t good for long-running work, or for threaded callbacks.

In this video Colt McAnlis shows how HandlerThread can be used to pick up the slack. This dedicated, long-running thread resource is ideal for situations where you have to process big workloads, or if you need a place to get an API result back, in a threaded manner.

Watch more Android Performance Patterns here: goo.gl/4ZJkY1

Join the G+ Community here : goo.gl/6ccETk

#PERFMATTERS

Subscribe to the Android Developers channel at goo.gl/GEh1ds
Случайные видео
4 дня – 2 4304:50
Semantic modeling for AI
247 дней – 171 7000:47
Xiaomi Fan Unboxing | Xiaomi 14
автотехномузыкадетское