Morning! I would like to know how I could, when spring boot is shutting down, await for a CoroutineScope childrens to end, more especifically I would like to "close" a CoroutineScope without cancelling its childrens, that is, prevent new jobs from being posted and throw if an attempt is make, and then await for its childrens to finish their work, and only then finish the application.
This is not specific for Spring Boot, I only need to figure out how to close a Coroutine Scope without cancelling its children, how could I do this?