Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cyorobert opened this issue Feb 28, 2018 · 0 comments
Open

Comments

@cyorobert
Copy link

cyorobert commented Feb 28, 2018

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant