diff options
author | Enrico Tassi <Enrico.Tassi@inria.fr> | 2015-02-20 16:01:12 +0100 |
---|---|---|
committer | Enrico Tassi <Enrico.Tassi@inria.fr> | 2015-02-21 19:25:24 +0100 |
commit | 7fc3adcf583cea7db6a224d9a58554b19d41cd4c (patch) | |
tree | 7ffc7fd9192d4e4ab8f469b1c66a6aaa4e7f73a8 /lib/future.mli | |
parent | cab07133acbce19e865b8302fef24dd4ea190d90 (diff) |
Future: human readable name for delegated (Close #4065)
Diffstat (limited to 'lib/future.mli')
-rw-r--r-- | lib/future.mli | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/future.mli b/lib/future.mli index 8a4fa0bdf..324d5f7d1 100644 --- a/lib/future.mli +++ b/lib/future.mli @@ -63,7 +63,7 @@ end module UUIDMap : Map.S with type key = UUID.t module UUIDSet : Set.S with type elt = UUID.t -exception NotReady +exception NotReady of string type 'a computation type 'a value = [ `Val of 'a | `Exn of Exninfo.iexn ] @@ -100,7 +100,8 @@ val fix_exn_of : 'a computation -> fix_exn delage assigns it. *) type 'a assignement = [ `Val of 'a | `Exn of Exninfo.iexn | `Comp of 'a computation] val create_delegate : - ?blocking:bool -> fix_exn -> 'a computation * ('a assignement -> unit) + ?blocking:bool -> name:string -> + fix_exn -> 'a computation * ('a assignement -> unit) (* Given a computation that is_exn, replace it by another one *) val replace : 'a computation -> 'a computation -> unit |