module Helper_thread:sig
..end
type
t
val create : ?priority:In_thread.Priority.t ->
?name:string -> unit -> t Core.Std.Or_error.t
create ?name ()
creates a new helper thread. The name
will be used as the
thread name for any work that that is done by the thread that doesn't get its own
name.
create
uses a thread from async's thread pool, reserving that thread for exclusive
use by the helper thread until the helper thread is no longer used (specifically,
finalized and is finished with all its work), at which point the thread is made
available for general use by the pool.