trulens.core.utils.threading¶
trulens.core.utils.threading
¶
Threading Utilities.
Classes¶
Thread
¶
Bases: Thread
Thread that wraps target with copy of context and stack.
App components that do not use this thread class might not be properly tracked.
Some libraries are doing something similar so this class may be less and less needed over time but is still needed at least for our own uses of threads.
ThreadPoolExecutor
¶
Bases: ThreadPoolExecutor
A ThreadPoolExecutor that keeps track of the stack prior to each thread's invocation.
Apps that do not use this thread pool might not be properly tracked.