aboutsummaryrefslogtreecommitdiff
path: root/lib/future.mli
diff options
context:
space:
mode:
authorEnrico Tassi2020-06-12 10:54:06 +0200
committerEnrico Tassi2020-06-12 10:54:06 +0200
commit13e8d04b2f080fbc7ca169bc39e53c8dd091d279 (patch)
tree4a430fe3e8d1b7f0e21e6296e3739399c5db9744 /lib/future.mli
parent96d206a9b249f28d489a453eb6a6ed627a5aa49b (diff)
parent213c9284ad5164f39df90da757ebfed44179f851 (diff)
Merge PR #12357: [declare] Remove some unused `fix_exn`
Reviewed-by: gares
Diffstat (limited to 'lib/future.mli')
-rw-r--r--lib/future.mli16
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/future.mli b/lib/future.mli
index 7a85c37970..612a67f962 100644
--- a/lib/future.mli
+++ b/lib/future.mli
@@ -47,21 +47,11 @@ type fix_exn = Exninfo.iexn -> Exninfo.iexn
by forcing the computations or any computation that is chained after
it. It is used by STM to attach errors to their corresponding states,
and to communicate to the code catching the exception a valid state id. *)
-val create : fix_exn -> (unit -> 'a) -> 'a computation
+val create : fix_exn:fix_exn -> (unit -> 'a) -> 'a computation
(* Usually from_val is used to create "fake" futures, to use the same API
- as if a real asynchronous computations was there. In this case fixing
- the exception is not needed, but *if* the future is chained, the fix_exn
- argument should really be given *)
-val from_val : ?fix_exn:fix_exn -> 'a -> 'a computation
-
-(* To get the fix_exn of a computation and build a Lemmas.declaration_hook.
- * When a future enters the environment a corresponding hook is run to perform
- * some work. If this fails, then its failure has to be annotated with the
- * same state id that corresponds to the future computation end. I.e. Qed
- * is split into two parts, the lazy one (the future) and the eager one
- * (the hook), both performing some computations for the same state id. *)
-val fix_exn_of : 'a computation -> fix_exn
+ as if a real asynchronous computations was there. *)
+val from_val : 'a -> 'a computation
(* Run remotely, returns the function to assign.
If not blocking (the default) it raises NotReady if forced before the