I had a detailed conversion with chatGPT about how to gracefully handle terminating conditions of a rust program. It summarized cogently to register at_exit()’s for each thread, panic handlers, and register signal handlers. It advised and explain in detail on my query about the thread handling for each of these variants, gave really helpful advice on collecting join handles in a closure on the main thread and waiting…
If you treat ChatGPT as the expert, you’re going to be disappointed. But when YOU are the expert & can verify what ChatGPT outputs, then it makes a fantastic automated reference.