Skip to content
Snippets Groups Projects
Commit 5e34b11f authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[db] enhanced doc

parent 5efca6dd
No related branches found
No related tags found
No related merge requests found
...@@ -99,8 +99,8 @@ autom4te.cache ...@@ -99,8 +99,8 @@ autom4te.cache
/doc/code/print_api/dynamic_plugins.mli /doc/code/print_api/dynamic_plugins.mli
/doc/code/print_api/_build/ /doc/code/print_api/_build/
/doc/code/builtin
/doc/code/studia /doc/code/studia
/doc/code/qed /doc/code/qed
/doc/code/wp /doc/code/wp
......
...@@ -1375,6 +1375,21 @@ val cancel : unit -> unit ...@@ -1375,6 +1375,21 @@ val cancel : unit -> unit
of the computation, and any exception is re-raised. of the computation, and any exception is re-raised.
The callback [~on_mute d] is triggered when the deamon has not been yielded The callback [~on_mute d] is triggered when the deamon has not been yielded
for a period [d] longer than [~debounce] or 100ms by default. for a period [d] longer than [~debounce] or 100ms by default.
Illustrative example, where [...] is the debounced time:
{[
job data : |<-------------------------------------------------->|<daemon removed>
yields : x x x x x x x x xxx xxx
trigger : |.......... |.......... |.......... |........|..
delayed : !
notes : (1) (2) (3) (4)
]}
1. First yield, normal trigger
2. Debounced yields leads to this second trigger
3. Delayed warning invoked since there was no yield for more than debounced period
4. Final trigger, a bit before the debounced time
*) *)
val with_progress : ?debounced:int -> ?delayed:(int -> unit) -> val with_progress : ?debounced:int -> ?delayed:(int -> unit) ->
(unit -> unit) -> ('a -> 'b) -> 'a -> 'b (unit -> unit) -> ('a -> 'b) -> 'a -> 'b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment