Unit 5 QuizziesΒΆ

  1. What criteria would you use to determine whether to use launch or async in a coroutine-based application?

  1. Choose an app on your phone. Think about the tasks that this app performs, e.g. displaying a picture, sending a message, drawing a button. For each of the dispatchers below, describe 1-3 specific tasks that are suitable for that dispatcher.

    • Dispatcher.Default

    • Dispatcher.IO

    • Dispatcher.Main

  2. What are the strengths and weaknesses of using Dependency Injection?