Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / ResolutionArbiter

Class: ResolutionArbiter

Defined in: packages/core/src/journal/resolution.ts:288

Per-run, per-target FIFO serializer of resolution/abandon attempts: classification against the in-memory fold -> durable append -> settle exactly once; losing attempts are ALSO appended and become journaled noops by fold classification. Winner effects run strictly after the critical section (the caller's job). Cross-process protection remains the LeasableStore fencing epoch.

Constructors

Constructor

ts
new ResolutionArbiter(fold, appender): ResolutionArbiter;

Defined in: packages/core/src/journal/resolution.ts:293

Parameters

ParameterType
foldResolutionFold
appenderRefEntryAppender

Returns

ResolutionArbiter

Methods

submitAbandon()

ts
submitAbandon(
   targetScope, 
   spanId, 
attempt): Promise<ResolutionOutcome>;

Defined in: packages/core/src/journal/resolution.ts:352

Parameters

ParameterType
targetScopestring
spanIdstring
attemptAbandonAttempt

Returns

Promise&lt;ResolutionOutcome&gt;


submitResolution()

ts
submitResolution(
   target, 
   targetScope, 
   spanId, 
attempt): Promise<ResolutionOutcome>;

Defined in: packages/core/src/journal/resolution.ts:308

Parameters

ParameterType
targetnumber
targetScopestring
spanIdstring
attemptResolutionAttempt

Returns

Promise&lt;ResolutionOutcome&gt;