pub struct Synapse { /* private fields */ }Expand description
Lightweight concurrency limiter for fork lens execution.
Implementations§
Source§impl Synapse
impl Synapse
pub fn new(max_concurrent: usize) -> Self
Sourcepub async fn run_all(
&self,
shared: &ForkShared,
lenses: Vec<ForkLens>,
task_manager: Option<&TaskManager>,
) -> ForkExecution
pub async fn run_all( &self, shared: &ForkShared, lenses: Vec<ForkLens>, task_manager: Option<&TaskManager>, ) -> ForkExecution
Run all lenses concurrently, respecting the concurrency limit.
Each lens gets a single provider call (not a full turn loop).
If a TaskManager is provided, one task is created per lens and
updated on completion.
Auto Trait Implementations§
impl Freeze for Synapse
impl RefUnwindSafe for Synapse
impl Send for Synapse
impl Sync for Synapse
impl Unpin for Synapse
impl UnsafeUnpin for Synapse
impl UnwindSafe for Synapse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more