Join Slack
Powered by
when i use io.ktor:ktor-server-test-host for writi...
# 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() ?
bitkid
09/24/2019, 3:01 PM
ah ok .. got it.
Copy code
environment.monitor.subscribe(ApplicationStopped){ println("Time to clean up") }
seems like its also called in the tests
12
Views
Open in Slack
Previous
Next