https://kotlinlang.org logo
#ktor
Title
# ktor
b

bitkid

09/24/2019, 2:56 PM
when i use io.ktor:ktor-server-test-host for writing my tests .. how can i free resources allocated in Application.main() ?
ah ok .. got it.
Copy code
environment.monitor.subscribe(ApplicationStopped){
        println("Time to clean up")
    }
seems like its also called in the tests
5 Views