]> matita.cs.unibo.it Git - helm.git/blobdiff - DEVEL/ocaml-http/http_misc.mli
added finally function
[helm.git] / DEVEL / ocaml-http / http_misc.mli
index b6e28e2bcbdc3a3782dfe5d73481dc3ff1d9906a..bb6a86fbb1d3de5824800930a1713e01d3894e63 100644 (file)
@@ -86,3 +86,9 @@ val list_assoc_all: 'a -> ('a * 'b) list -> 'b list
 val warn: string -> unit (** print a warning msg to stderr. Adds trailing \n *)
 val error: string -> unit (** print an error msg to stderr. Adds trailing \n *)
 
+  (** @param finalizer finalization function (execution both in case of success
+   * and in case of raised exception
+   * @param f function to be invoked
+   * @param arg argument to be passed to function *)
+val finally: (unit -> unit) -> ('a -> 'b) -> 'a -> 'b
+