Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> With nurseries, where do I create a nursery

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.



> main() would have to wait for all logging to complete

Which is presumably the desired behavior anyway as all objects fall out of scope during program termination.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: