traits_futures.multithreading_context module¶
Context providing multithreading-friendly worker pools, events, and routers.
-
class
traits_futures.multithreading_context.
MultithreadingContext
[source]¶ Bases:
traits_futures.i_parallel_context.IParallelContext
Context for multithreading, suitable for use with the TraitsExecutor.
-
property
closed
¶ True if this context is closed, else False.
-
event
()[source]¶ Return a shareable event suitable for this context.
- Returns
event – An event that can be shared safely with workers.
- Return type
event-like
-
message_router
()[source]¶ Return a message router suitable for use in this context.
- Returns
message_router
- Return type
-
property