pub struct InlineProcessRunHandle { /* private fields */ }Expand description
Inline run handle: drives the worker’s own lease-protected sweep in-process.
Delegates to DurableProcessWorker::drive_pending_processes, the existing
list_non_terminal -> claim lease -> run -> complete -> release loop, so the
inline tier reuses the same coordination point as the durable tier.
Implementations§
Source§impl InlineProcessRunHandle
impl InlineProcessRunHandle
pub fn new(worker: DurableProcessWorker) -> Self
Trait Implementations§
Source§impl ProcessRunHandle for InlineProcessRunHandle
impl ProcessRunHandle for InlineProcessRunHandle
Source§fn claim_and_run_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn claim_and_run_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Claim and run every pending process this owner can claim, driving each to
a terminal state. Idempotent: leased and terminal rows are skipped.
Auto Trait Implementations§
impl !RefUnwindSafe for InlineProcessRunHandle
impl !UnwindSafe for InlineProcessRunHandle
impl Freeze for InlineProcessRunHandle
impl Send for InlineProcessRunHandle
impl Sync for InlineProcessRunHandle
impl Unpin for InlineProcessRunHandle
impl UnsafeUnpin for InlineProcessRunHandle
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