Role of Task.Supervisor

I’m trying to understand Task monitoring and supervision. Since the Tasks started under Task.Supervisor are transient and not restarted, is the sole role of the Task.Supervisor to be a buffer between the calling process and the Task?

Supervisors play other roles beyond supervision. If the task supervisor is part of a supervision tree, they provide discoverability, for example I can use observer to reach the task supervisor and each of its children, and can also ensure a clean shutdown when the application terminates, by guaranteeing all child tasks terminate in a given grace period before they are effectively terminated.


Understood. Thanks for the detail.