Skip to content

Android - onTerminate will never be called in production environments #11

@cyorobert

Description

@cyorobert

It may be useful to update your Android configuration documentation to state that onTerminate will never be called in production environments. https://developer.android.com/reference/android/app/Application.html#onTerminate()

Your webpage currently lists the following example:

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        // Configure Kovenant with standard dispatchers
        // suitable for an Android environment.
        startKovenant()
    }

    override fun onTerminate() {
        super.onTerminate()
        // Dispose of the Kovenant thread pools.
        // For quicker shutdown you could use
        // `force=true`, which ignores all current
        // scheduled tasks
        stopKovenant()
    }
}

http://kovenant.komponents.nl/android/config/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions