16 namespace experimental {
44 std::shared_ptr<Context> _context;
45 bool _enableDelayedSubmission{
false};
46 bool _enableFuture{
false};
80 std::shared_ptr<Worker>
build()
const;
91 operator std::shared_ptr<Worker>()
const;
Builder class for constructing std::shared_ptr<ucxx::Worker> objects.
Definition: worker_builder.h:42
WorkerBuilder & pythonFuture(bool enable=true)
Configure Python future support.
WorkerBuilder & delayedSubmission(bool enable=true)
Configure delayed submission to the progress thread.
std::shared_ptr< Worker > build() const
Build and return the Worker.
WorkerBuilder(std::shared_ptr< Context > context)
Constructor for WorkerBuilder with required context.
std::shared_ptr< Worker > createWorker(std::shared_ptr< Context > context, const bool enableDelayedSubmission, const bool enableFuture)
Constructor of shared_ptr<ucxx::Worker> with parameters.