pub struct MapBuilder<T> { /* private fields */ }Expand description
Builder for map operations
Allows batching multiple tasks with retry configuration.
Implementations§
Source§impl<T> MapBuilder<T>
impl<T> MapBuilder<T>
Sourcepub fn with_retry(self, count: u32) -> Self
pub fn with_retry(self, count: u32) -> Self
Set retry count for failed tasks
Each task will be retried up to this many times if it fails.
Sourcepub async fn await_impl(self) -> PolarisResult<Vec<TaskResult>>
pub async fn await_impl(self) -> PolarisResult<Vec<TaskResult>>
Execute the map operation
Submits all tasks concurrently, waits for results, and retries failures.
§Returns
Returns task results in the order they were submitted. Note: Type parameter T is currently not used for deserialization.
Auto Trait Implementations§
impl<T> Freeze for MapBuilder<T>
impl<T> !RefUnwindSafe for MapBuilder<T>
impl<T> Send for MapBuilder<T>where
T: Send,
impl<T> Sync for MapBuilder<T>where
T: Sync,
impl<T> Unpin for MapBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for MapBuilder<T>
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