package async_kernel
Monadic concurrency library
Install
Dune Dependency
Authors
Maintainers
Sources
async_kernel-v0.15.0.tar.gz
sha256=30753e014bb0b127ee59f10b1073b8ae476468fb2f07dc8c99dbe2ef312fc696
doc/async_kernel.config/Async_kernel_config/index.html
Module Async_kernel_config
Source
Settings that globally affect the behavior of Async.
These can be set by setting an environment variable, ASYNC_CONFIG
, to a sexp representation of the config. Also, setting ASYNC_CONFIG
to an invalid sexp (e.g. the empty string), will cause your program to print to stderr a usage message describing how to configure ASYNC_CONFIG
, and exit nonzero. For example, the following shell command should print the usage message:
ASYNC_CONFIG= foo.exe
Source
type t = {
abort_after_thread_pool_stuck_for : Core.Time_ns.Span.t option;
check_invariants : bool option;
detect_invalid_access_from_thread : bool option;
dump_core_on_job_delay : Dump_core_on_job_delay.t option;
epoll_max_ready_events : Epoll_max_ready_events.t option;
file_descr_watcher : File_descr_watcher.t option;
max_inter_cycle_timeout : Max_inter_cycle_timeout.t option;
max_num_open_file_descrs : Max_num_open_file_descrs.t option;
max_num_threads : Max_num_threads.t option;
max_num_jobs_per_priority_per_cycle : Max_num_jobs_per_priority_per_cycle.t option;
min_inter_cycle_timeout : Min_inter_cycle_timeout.t option;
print_debug_messages_for : Debug_tag.t list option;
record_backtraces : bool option;
report_thread_pool_stuck_for : Core.Time_ns.Span.t option;
thread_pool_cpu_affinity : Thread_pool_cpu_affinity.t option;
timing_wheel_config : Timing_wheel.Config.t option;
}
Source
val create :
?abort_after_thread_pool_stuck_for:Core.Time_ns.Span.t ->
?check_invariants:bool ->
?detect_invalid_access_from_thread:bool ->
?dump_core_on_job_delay:Dump_core_on_job_delay.t ->
?epoll_max_ready_events:Epoll_max_ready_events.t ->
?file_descr_watcher:File_descr_watcher.t ->
?max_inter_cycle_timeout:Max_inter_cycle_timeout.t ->
?max_num_open_file_descrs:Max_num_open_file_descrs.t ->
?max_num_threads:Max_num_threads.t ->
?max_num_jobs_per_priority_per_cycle:Max_num_jobs_per_priority_per_cycle.t ->
?min_inter_cycle_timeout:Min_inter_cycle_timeout.t ->
?print_debug_messages_for:Debug_tag.t list ->
?record_backtraces:bool ->
?report_thread_pool_stuck_for:Core.Time_ns.Span.t ->
?thread_pool_cpu_affinity:Thread_pool_cpu_affinity.t ->
?timing_wheel_config:Timing_wheel.Config.t ->
unit ->
t
Documentation on these is in strings in config.ml, so it can be output in the help message.
!task_id
is used in debug messages. It is is set in Async_unix
to include the thread and pid.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>