pub struct ParallelBatchExecutor<'a> { /* private fields */ }Expand description
Parallel batch executor for very large address sets.
Implementations§
Source§impl<'a> ParallelBatchExecutor<'a>
impl<'a> ParallelBatchExecutor<'a>
Sourcepub fn new(client: &'a ElectrumClient) -> Self
pub fn new(client: &'a ElectrumClient) -> Self
Create a new parallel executor.
Sourcepub fn chunk_size(self, size: usize) -> Self
pub fn chunk_size(self, size: usize) -> Self
Set the chunk size for parallel execution.
Sourcepub async fn get_balances(
&self,
addresses: &[&str],
) -> Result<HashMap<String, Balance>>
pub async fn get_balances( &self, addresses: &[&str], ) -> Result<HashMap<String, Balance>>
Get balances for many addresses in parallel chunks.
Auto Trait Implementations§
impl<'a> Freeze for ParallelBatchExecutor<'a>
impl<'a> !RefUnwindSafe for ParallelBatchExecutor<'a>
impl<'a> Send for ParallelBatchExecutor<'a>
impl<'a> Sync for ParallelBatchExecutor<'a>
impl<'a> Unpin for ParallelBatchExecutor<'a>
impl<'a> !UnwindSafe for ParallelBatchExecutor<'a>
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