Arjan van Wieringen
07/09/2025, 12:58 PMsimon.vergauwen
07/09/2025, 1:31 PMArjan van Wieringen
07/09/2025, 1:43 PMBogdan Vladoiu Lbs
07/09/2025, 2:14 PMBogdan Vladoiu Lbs
07/09/2025, 2:15 PMsimon.vergauwen
07/09/2025, 2:16 PMBogdan Vladoiu Lbs
07/09/2025, 2:17 PMBogdan Vladoiu Lbs
07/09/2025, 2:22 PMsimon.vergauwen
07/09/2025, 3:42 PMBogdan Vladoiu Lbs
07/09/2025, 3:44 PMsimon.vergauwen
07/09/2025, 3:46 PMApplication
which is a CoroutineScope
which the same lifecycle as the server.
In Spring you can pretty much do the same by defining a custom Scope, https://gist.github.com/nomisRev/809ed20bbed7c6170815e985dee1ba71#file-springscope-kt.Bogdan Vladoiu Lbs
07/09/2025, 3:47 PMBogdan Vladoiu Lbs
07/09/2025, 3:47 PMsimon.vergauwen
07/09/2025, 3:50 PMrunBlocking
that turns hooks into termination signals, and respects structured concurrency on termination. Also works on NodeJS, and native desktop targets.Bogdan Vladoiu Lbs
07/09/2025, 3:52 PMPablichjenkov
07/09/2025, 6:37 PMktor-koin
, ktor-dagger
, ktor-kodeIn
and such. Perhaps harder to maintain but easier for the consumer developerArjan van Wieringen
07/09/2025, 9:11 PMPablichjenkov
07/09/2025, 9:41 PMArjan van Wieringen
07/09/2025, 9:52 PMBogdan Vladoiu Lbs
07/09/2025, 10:21 PMPablichjenkov
07/09/2025, 10:24 PM