AsyncTask is Deprecated !!??

Bram Yeh
1 min readJun 17, 2020

--

The article New Android R Important Changes said AsyncTask deprecated

Starting from this version of the Android async task will be deprecated. Async task is used to do short running operations on the background thread, and publish results on UI Thread. Android advice to use thejava.util.concurrentor Kotlin Coroutines. Here is the example code below.

It’s shocking so I look back to Android Developer AsyncTask, and find the official comment:

This class was deprecated in API level 30.
Use the standard java.util.concurrent or Kotlin concurrency utilities instead.

…. I don’t know what to say … what I can do is reading the article written by by Vasiliy (which I strongly suggest reading,)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Bram Yeh
Bram Yeh

Written by Bram Yeh

Lead Android & iOS Mobile Engineer at Yahoo (Verizon Media) Taiwan https://www.linkedin.com/in/hanruyeh/

Responses (1)

Write a response