package vsrocq-language-server

  1. Overview
  2. Docs
VSRocq language server

Install

dune-project
 Dependency

Authors

Maintainers

Sources

vsrocq-language-server-2.5.0.tar.gz
md5=15c22fee2131c4b3dae4258e8a4484f6
sha512=b5ab3eea5bb6af643d635781e741a7a7b217fcc33e84c2c9e3448962118a63e174569ef6069c50af2ab57508d5cef476a8cfade14957a9654b1fea16c29a08b9

doc/vsrocq-language-server.dm/Dm/ProverThread/index.html

Module Dm.ProverThreadSource

Sourceval set_options : preempt:bool -> unit

if ~preempt is false the run and try_run APIs enqueue the job rather than forcibly interrupting any running job

The thunks passed to the API below must install a Rocq state with Vernacstate.* and then perform their work. In other words they should be real closures, independent from the Rocq context they are fired in.

Sourceval eventually_run : doc_id:Types.document_id -> name:string -> (unit -> 'a) -> 'a Types.interruptible_result Sel.Promise.t

eventually_run ~doc_id thunk puts the thunk in the and promises to execute it eventually

Sourceval try_run : doc_id:Types.document_id -> name:string -> timeout:float -> (unit -> 'a) -> 'a Types.interruptible_result

run ~doc_id ~timeout thunk runs thunk and waits timeout seconds.

Sourceval run : doc_id:Types.document_id -> name:string -> (unit -> 'a) -> ('a, Pp.t) Result.t

run ~doc_id thunk runs thunk and waits for its completion.

Sourceval interrupt : doc_id:Types.document_id -> unit

interrupt ~doc_id interrupts the runnign thunk only if it runs for ~doc_id