withSessionLease
withSessionLease<
A,E,R>(options):Effect<Option<A>,LeaseFailure|E,R>
Defined in: packages/core/src/session/lease.ts:169
Explicit-store form kept for callers that already hold a store value.
Type Parameters
Section titled “Type Parameters”A
E
R
Parameters
Section titled “Parameters”options
Section titled “options”leaseTtlMs
Section titled “leaseTtlMs”number
sessionId
Section titled “sessionId”string
(lease) => Effect<A, E, R>
Returns
Section titled “Returns”Effect<Option<A>, LeaseFailure | E, R>