com.lightningkite.lightningserver.core.Disconnectable.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
package com.lightningkite.lightningserver.core
/**
* Added calls for handling connecting and disconnecting to external services that require constant open connections
* Ex: Database
*/
interface Disconnectable {
suspend fun disconnect() {}
suspend fun connect() {}
}