Question: I need to find objects from `ArrayList<Object>` with similar `object.trackingId`.

For example:

```
ArrayList<Ilist> ilistArray = new ArrayList<>();
ilistArray.addAll(...); // array is filled with Ilist objects

```

```
class Ilist {
    String name;   
    String trackingId;
    String place;
    // Et cetera
}

```

I need to find the those object from `ilistArray` which has similar trackingId.

Answer: 
To get rid of the warning try to use next code inside `DownloadInfoClass`:

```
private fun downloadMethod(urls: String) = CoroutineScope(Main).launch {
    url = URL(urls)
    val result = download() // suspends a coroutines launched using Main Context
    Log.i("Result: ", result)
}

private suspend fun download() = withContext(IO) { // download on background thread
    try {
        httpURLConnection = url.openConnection() as HttpURLConnection
        inputStream = httpURLConnection.inputStream
        inputStreamReader = InputStreamReader(inputStream)

        var data: Int = inputStreamReader.read()
        while (data != -1) {
            val current: Char = data.toChar()
            result += current
            data = inputStreamReader.read()
        }
        result // return result if there are no Exceptions
    } catch (e: Exception) {
        e.printStackTrace()
    }
    "" // return empty String if there is an Exception
}

```
```
private fun downloadMethod(urls: String) {
    url = URL(urls)
    val result : Deferred<String> = coroutineScope { 
      async {download()}
    }    
    Log.i("Result: ", result.await())
}

private fun download() : String { // download on background thread
    try {
        httpURLConnection = url.openConnection() as HttpURLConnection
        inputStream = httpURLConnection.inputStream
        inputStreamReader = InputStreamReader(inputStream)

        var data: Int = inputStreamReader.read()
        while (data != -1) {
            val current: Char = data.toChar()
            result += current
            data = inputStreamReader.read()
        }
       return result // return result if there are no Exceptions
    } catch (e: Exception) {
        e.printStackTrace()
    }
    return "" // return empty String if there is an Exception
}

```