-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Service Arch
-
2
We should improve the documentation on how to properly manage the lifetime of a TaskExecutor when used with instances of ExecutorFuture.
In particular, we have instances of TaskExecutor that create a Client for each executor thread, requiring the executor to properly shutdown and join before the ServiceContext is destroyed. The documentation should highlight that the executor (and its threads) will stay alive so long as executor futures (and asynchronous loops) are not destroyed.