type t =
val all : t list
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
default
defines the default value used for In_thread.run
's ?when_finished
argument. Changes to default
affect subsequent calls to In_thread.run
. Initially, default = Try_to_take_the_async_lock
, which typically leads to better latency by avoiding an extra context switch to pass the result to the Async scheduler thread. However, there are applications (e.g. jenga) where Notify_the_scheduler
leads to significantly higher throughput by greatly decreasing the total number of Async cycles.