Skip to content
Snippets Groups Projects
Commit b6740aa1 authored by Loïc Correnson's avatar Loïc Correnson Committed by Michele Alberti
Browse files

[server] doc on start/run

parent e73ba6c1
No related branches found
No related tags found
No related merge requests found
......@@ -83,10 +83,15 @@ val create :
fetch:(unit -> 'a message option) ->
unit -> 'a server
(** Run the server forever. *)
(** Run the server forever.
The function will not return until the server is shut down. *)
val run : 'a server -> unit
(** Start the server in background. *)
(** Start the server in background.
The function returns immediately
after installing a daemon that accepts GET requests received by
the server on calls to `Db.yield()`.
*)
val start : 'a server -> unit
(** Stop the server if it is running in background. *)
......
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