3

What's the difference (if any) between:

new System.Threading.Thread(new System.Threading.ThreadStart(() => {
    Activity.RunOnUiThread(() => {
        recyclerView.SetAdapter(adapter);
    });
})).Start();

and:

await Task.Run(() => recyclerView.SetAdapter(adapter));
Milen Pivchev
  • 1,417
  • 2
  • 16
  • 29

0 Answers0