One option would be to have main() create and pass the nursery when it initializes the asynchronous logger.
main() would have to wait for all logging to complete, but nothing else would.
Which is presumably the desired behavior anyway as all objects fall out of scope during program termination.
One option would be to have main() create and pass the nursery when it initializes the asynchronous logger.
main() would have to wait for all logging to complete, but nothing else would.