From 7fc3adcf583cea7db6a224d9a58554b19d41cd4c Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 20 Feb 2015 16:01:12 +0100 Subject: Future: human readable name for delegated (Close #4065) --- lib/future.mli | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/future.mli') 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 -- cgit v1.2.3