pub struct BatchProcessor { /* private fields */ }Expand description
Handles batch processing of API requests
Implementations§
Source§impl BatchProcessor
impl BatchProcessor
Sourcepub fn new(receiver: Receiver<BatchRequest>, shutdown_rx: Receiver<()>) -> Self
pub fn new(receiver: Receiver<BatchRequest>, shutdown_rx: Receiver<()>) -> Self
Creates a new batch processor
Sourcepub async fn run(self, transport: StatsigTransport, config: StatsigClientConfig)
pub async fn run(self, transport: StatsigTransport, config: StatsigClientConfig)
Runs the batch processor loop
Auto Trait Implementations§
impl Freeze for BatchProcessor
impl RefUnwindSafe for BatchProcessor
impl Send for BatchProcessor
impl Sync for BatchProcessor
impl Unpin for BatchProcessor
impl UnwindSafe for BatchProcessor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more