mplatvoet / kovenant

Kovenant. Promises for Kotlin.

Home Page:http://kovenant.komponents.nl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android - `onTerminate` will never be called in production environments

cyorobert opened this issue · comments

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/