Set parent session capabilities to inherit into child runs.
(mut self, ctx: crate::child_run::ChildRunContext)
| 239 | |
| 240 | /// Set parent session capabilities to inherit into child runs. |
| 241 | pub fn with_parent_context(mut self, ctx: crate::child_run::ChildRunContext) -> Self { |
| 242 | if let Some(max_parallel_tasks) = ctx.max_parallel_tasks { |
| 243 | self.max_parallel_tasks = max_parallel_tasks.max(1); |
| 244 | } |
| 245 | self.parent_context = Some(ctx); |
| 246 | self |
| 247 | } |
| 248 | |
| 249 | pub fn with_max_parallel_tasks(mut self, max_parallel_tasks: usize) -> Self { |
| 250 | self.max_parallel_tasks = max_parallel_tasks.max(1); |
no outgoing calls
no test coverage detected