def
Lean.Server.FileWorker.logSnapContent
(s : Lean.Server.Snapshots.Snapshot)
(text : Lean.FileMap)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
- aborted: Lean.Server.FileWorker.ElabTaskError
- ioError: IO.Error → Lean.Server.FileWorker.ElabTaskError
Instances For
Equations
- Lean.Server.FileWorker.instMonadLiftIOEIOElabTaskError = { monadLift := fun {α} act => IO.toEIO (fun x => Lean.Server.FileWorker.ElabTaskError.ioError x) act }
def
Lean.Server.FileWorker.CancelToken.check
{m : Type → Type}
[MonadExceptOf Lean.Server.FileWorker.ElabTaskError m]
[MonadLiftT (ST IO.RealWorld) m]
[Monad m]
(tk : Lean.Server.FileWorker.CancelToken)
:
m Unit
Equations
- Lean.Server.FileWorker.CancelToken.check tk = do let c ← ST.Ref.get tk.ref if c = true then throw Lean.Server.FileWorker.ElabTaskError.aborted else pure PUnit.unit
Instances For
Equations
Instances For
- meta : Lean.Server.DocumentMeta
State snapshots after header and each command.
- cancelTk : Lean.Server.FileWorker.CancelToken
A document editable in the sense that we track the environment and parser state after each command so that edits can be applied without recompiling code appearing earlier in the file.
Instances For
- objects : Lean.Server.RpcObjectStore
- expireTime : Nat
The
IO.monoMsNow
time when the session expires. See$/lean/rpc/keepAlive
.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.FileWorker.RpcSession.keptAlive
(monoMsNow : Nat)
(s : Lean.Server.FileWorker.RpcSession)
:
Equations
- Lean.Server.FileWorker.RpcSession.keptAlive monoMsNow s = { objects := s.objects, expireTime := monoMsNow + Lean.Server.FileWorker.RpcSession.keepAliveTimeMs }
Instances For
Equations
- Lean.Server.FileWorker.RpcSession.hasExpired s = do let __do_lift ← liftM IO.monoMsNow pure (decide (s.expireTime ≤ __do_lift))