Skip to content

Android Basics: Introduction to Coroutines in Android Studio: Different CancellationException message #68

@lorenzomag

Description

@lorenzomag

Hello,

I'm curently trying to understand how the LaunchedEffect function cancelles the coroutines once the player objects are reset.

At the end of chapter 6 ("Launch concurrent tasks") in the course material, it states:

  1. Make sure you see the following message printed in Logcat:
Player 1: StandaloneCoroutine was cancelled
Player 2: StandaloneCoroutine was cancelled

The message I see is:

Player 1: The coroutine scope left the composition
Player 2: The coroutine scope left the composition

Is this due to some more recent code updates? Is everything going as expected?
The working 'make sure you see this', makes it seem like I should make sure I see that 😅

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions