Skip to content

Readme is using deprecated method #195

@jt-gilkeson

Description

@jt-gilkeson

The readme is showing the following:

    lifecycle.coroutineScope.launchWhenCreated {
        val googleMap = mapFragment?.awaitMap()
    }

as the example of how to use this, but that code has been deprecated.
Can you update the readme to have a more current example?

Is:

     lifecycleScope.lifecycleScope.launch {
         lifecycle.repeatOnLifecycle(Lifecycle.State.CREATED) {
             val googleMap = mapFragment?.awaitMap()
         }
     }

the correct way to use this now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: docsImprovement to the documentation for an API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions