kwcoco.util.util_kwutil module¶
This is a staging ground for utilities that may make there way into
kwutil proper at some point in the future.
- class kwcoco.util.util_kwutil._DelayedFuture(func, args, kwargs, parent)[source]¶
Bases:
objecttodo: move to kwutil
Wraps a future object so we can execute logic when its result has been accessed.
- class kwcoco.util.util_kwutil._DelayedBlockingJobQueue(max_unhandled_jobs, mode='thread', max_workers=None)[source]¶
Bases:
objecttodo: move to kwutil
References
[GISTnoxdafoxMaxQueuePool]https://gist.github.com/noxdafox/4150eff0059ea43f6adbdd66e5d5e87e
- class kwcoco.util.util_kwutil._MaxQueuePool(max_queue_size=None, mode='thread', max_workers=0)[source]¶
Bases:
objecttodo: move to kwutil
This Class wraps a concurrent.futures.Executor limiting the size of its task queue. If max_queue_size tasks are submitted, the next call to submit will block until a previously submitted one is completed.
References
[GISTnoxdafoxMaxQueuePool]https://gist.github.com/noxdafox/4150eff0059ea43f6adbdd66e5d5e87e