Skip to main content

Function: endOperationRun()

endOperationRun(store, id, end): Promise<RunEnd>

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:355

Ends a run; see SpendDayStore.endRun. A figure that is not a finite number, zero or more, was never known, so the run settles at its whole bound, as releaseSpend settles an unknown cost. An end that names no run from 1 or no valid date is a RangeError, since a time that is not a date would settle the row at once.

Parameters​

store​

SpendDayStore

id​

string

end​

at​

Date

close​

boolean

run​

number

settledMicro​

number

Returns​

Promise<RunEnd>