feat: realizeConst to set CoreM's maxHeartbeat (#11191)
This PR makes sure that inside a `realizeConst` the `maxHeartbeat` option is effective.
This commit is contained in:
parent
100006fdd0
commit
e39894e62d
1 changed files with 4 additions and 1 deletions
|
|
@ -2657,7 +2657,10 @@ def realizeConst (forConst : Name) (constName : Name) (realize : MetaM Unit) :
|
|||
where
|
||||
-- similar to `wrapAsyncAsSnapshot` but not sufficiently so to share code
|
||||
realizeAndReport (coreCtx : Core.Context) env opts := do
|
||||
let coreCtx := { coreCtx with options := opts }
|
||||
let coreCtx := { coreCtx with
|
||||
options := opts
|
||||
maxHeartbeats := Core.getMaxHeartbeats opts
|
||||
}
|
||||
let act :=
|
||||
IO.FS.withIsolatedStreams (isolateStderr := Core.stderrAsMessages.get opts) (do
|
||||
-- catch all exceptions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue