phldavies
11/21/2025, 3:16 PMSuspendApp scope itself to delay the entire scope from being cancelled? We've noticed in a service that has two distinct Ktor embedded servers that the pre-wait occurs once for each service. Obviously we can disable it for the first server and use the last-registered (and first-released) server to apply the pre-wait, but it feels like it belongs a level above.simon.vergauwen
11/24/2025, 7:24 AMsuspend fun ResourceScope.prewait(): Unit = install({}) { delay(prewait) }
A ResourceScope.parInstall might work but it's maybe a bit confusing, and error-prone. The difference with regular parZip is that the finalisers would run in parallel.