Index of values


__bin_read_buffer_age_limit__ [Writer0]
__bin_read_buffer_age_limit__ [Writer]
__bin_read_t__ [Reader.Read_result]
__bin_read_t__ [Reader0.Read_result.Z]
__bin_read_t__ [Unix_syscalls.Socket.Address.Inet]
__bin_read_t__ [Unix_syscalls.Socket.Address.Unix]
__bin_read_t__ [Unix_syscalls.Socket.Address]
__bin_read_t__ [Unix_syscalls.Inet_addr]
__buffer_age_limit_of_sexp__ [Writer0]
__buffer_age_limit_of_sexp__ [Writer]
__env_of_sexp__ [Process]
__t_of_sexp__ [Read_write.Key]
__t_of_sexp__ [Reader.Read_result]
__t_of_sexp__ [Reader0.Internal.State]
__t_of_sexp__ [Reader0.Read_result.Z]
__t_of_sexp__ [Unix_syscalls.Socket.Address.Inet]
__t_of_sexp__ [Unix_syscalls.Socket.Address.Unix]
__t_of_sexp__ [Unix_syscalls.Socket.Address]
__wait_on_of_sexp__ [Unix_syscalls]

A
accept [Unix_syscalls.Socket]
accept_interruptible [Unix_syscalls.Socket]
acceptconn [Unix_syscalls.Socket.Opt]
access [Unix_syscalls]
access_exn [Unix_syscalls]
add [Raw_signal_manager.Handlers]
add [Busy_pollers]
add t f adds function f to the set t.
add_busy_poller [Scheduler]
Async supports "busy polling", which runs a thread that busy loops running user-supplied polling functions.
add_busy_poller [Raw_scheduler]
add_exn [Fd_by_descr]
add_exn t fd fails if the file descriptor for fd is already in t.
add_finalizer [Raw_scheduler]
add_finalizer_exn [Raw_scheduler]
add_iovec [Writer0]
add_work [Thread_pool]
add_work ?priority ?name t f enqueues f to be done by some thread in the pool.
add_work_for_helper_thread [Thread_pool]
add_work_for_helper_thread ?priority ?name t helper_thread f enqueues f on helper_thread's work queue.
addr [Unix_syscalls.Socket.Address.Inet]
am_holding_async_lock [Thread_safe]
am_holding_async_lock () returns true if the currently running thread is holding the async lock.
am_holding_lock [Raw_scheduler]
any_of_sexp [Read_write]
apply_umask [Writer0]
argv [Async_sys]
at_shutdown [Shutdown]
at_shutdown f causes f () to be run when shutdown is called, and for shutdown to wait until the returned deferred finishes.
atime [Unix_syscalls.Stats.Fields]
atime [Unix_syscalls.Stats]
available [Reader0.Internal.Fields]
available [Reader0.Internal]

B
back [Writer0.Fields]
back [Writer0]
backend [File_descr_watcher_intf.S]
background_writer_state [Writer0.Fields]
background_writer_state [Writer0]
be_the_scheduler [Raw_scheduler]
bin_buffer_age_limit [Writer0]
bin_buffer_age_limit [Writer]
bin_prot_buf [Reader0.Internal.Fields]
bin_prot_buf [Reader0.Internal]
bin_prot_len_buf [Reader0.Internal.Fields]
bin_prot_len_buf [Reader0.Internal]
bin_read_buffer_age_limit [Writer0]
bin_read_buffer_age_limit [Writer]
bin_read_t [Reader.Read_result]
bin_read_t [Reader0.Read_result.Z]
bin_read_t [Unix_syscalls.Socket.Address.Inet]
bin_read_t [Unix_syscalls.Socket.Address.Unix]
bin_read_t [Unix_syscalls.Socket.Address]
bin_read_t [Unix_syscalls.Inet_addr]
bin_reader_buffer_age_limit [Writer0]
bin_reader_buffer_age_limit [Writer]
bin_reader_t [Reader.Read_result]
bin_reader_t [Reader0.Read_result.Z]
bin_reader_t [Unix_syscalls.Socket.Address.Inet]
bin_reader_t [Unix_syscalls.Socket.Address.Unix]
bin_reader_t [Unix_syscalls.Socket.Address]
bin_reader_t [Unix_syscalls.Inet_addr]
bin_size_buffer_age_limit [Writer0]
bin_size_buffer_age_limit [Writer]
bin_size_t [Reader.Read_result]
bin_size_t [Reader0.Read_result.Z]
bin_size_t [Unix_syscalls.Socket.Address.Inet]
bin_size_t [Unix_syscalls.Socket.Address.Unix]
bin_size_t [Unix_syscalls.Socket.Address]
bin_size_t [Unix_syscalls.Inet_addr]
bin_t [Reader.Read_result]
bin_t [Reader0.Read_result.Z]
bin_t [Unix_syscalls.Socket.Address.Inet]
bin_t [Unix_syscalls.Socket.Address.Unix]
bin_t [Unix_syscalls.Socket.Address]
bin_t [Unix_syscalls.Inet_addr]
bin_write_buffer_age_limit [Writer0]
bin_write_buffer_age_limit [Writer]
bin_write_t [Reader.Read_result]
bin_write_t [Reader0.Read_result.Z]
bin_write_t [Unix_syscalls.Socket.Address.Inet]
bin_write_t [Unix_syscalls.Socket.Address.Unix]
bin_write_t [Unix_syscalls.Socket.Address]
bin_write_t [Unix_syscalls.Inet_addr]
bin_writer_buffer_age_limit [Writer0]
bin_writer_buffer_age_limit [Writer]
bin_writer_t [Reader.Read_result]
bin_writer_t [Reader0.Read_result.Z]
bin_writer_t [Unix_syscalls.Socket.Address.Inet]
bin_writer_t [Unix_syscalls.Socket.Address.Unix]
bin_writer_t [Unix_syscalls.Socket.Address]
bin_writer_t [Unix_syscalls.Inet_addr]
bind [Reader0.Read_result.Z]
bind [Unix_syscalls.Socket]
bind socket addr sets close_on_exec for the fd of socket.
bind_any [Unix_syscalls.Inet_addr]
bind_any_inet6 [Unix_syscalls.Inet_addr]
block_on_async [Thread_safe]
block_on_async f runs f () in the async world and blocks until the result becomes determined.
block_on_async_exn [Thread_safe]
broadcast [Unix_syscalls.Socket.Opt]
buf [Writer0.Fields]
buf [Writer0]
buf [Reader0.Internal.Fields]
buf [Reader0.Internal]
buffer_age_limit_of_sexp [Writer0]
buffer_age_limit_of_sexp [Writer]
busy_poll_thread_is_running [Raw_scheduler.Fields]
busy_poll_thread_is_running [Raw_scheduler]
busy_pollers [Raw_scheduler.Fields]
busy_pollers [Raw_scheduler]
bytes_received [Writer0.Fields]
bytes_received [Writer0]
bytes_received [Writer]
bytes_received t returns how many bytes have been received by the writer.
bytes_to_write [Writer0]
bytes_to_write [Writer]
bytes_to_write t returns how many bytes have been requested to write but have not yet been written.
bytes_written [Writer0.Fields]
bytes_written [Writer0]
bytes_written [Writer]
bytes_written t returns how many bytes have been written.

C
c_int_size [Async_sys]
chdir [Unix_syscalls]
chdir [Async_sys]
check_buffer_age [Writer0.Fields]
check_buffer_age [Writer0]
chmod [Unix_syscalls]
chown [Unix_syscalls]
chroot [Unix_syscalls]
clear [Interruptor]
clear t causes read_fd t to become not ready for reading.
clear_close_on_exec [Unix_syscalls]
clear_nonblock [Fd]
clear_nonblock t clears the ``non-blocking'' flag on t and causes and causes async to treat the fd as though it doesn't support nonblocking I/O.
close [Writer0]
close [Writer]
close ?force_close t waits for the writer to be flushed, and then calls Unix.close on the underlying file descriptor.
close [Thread_safe_pipe]
close [Reader]
close t prevents further use of t and closes t's underlying file descriptor.
close [Reader0.Internal]
close [Unix_syscalls]
close fd closes the file descriptor fd, and raises an exception if fd has already been closed.
close [Reader0]
close [Fd]
close t prevents further use of t, and closes the underlying file descriptor once all the current uses are finished.
close_finished [Writer0.Fields]
close_finished [Writer0]
close_finished [Writer]
close_finished [Reader]
close_finished [Reader0.Internal.Fields]
close_finished [Reader0.Internal]
close_finished [Reader0]
close_finished [Raw_fd.T.Fields]
close_finished [Raw_fd.T]
close_finished [Fd]
close_may_destroy_buf [Reader0.Internal.Fields]
close_may_destroy_buf [Reader0.Internal]
close_state [Writer0.Fields]
close_state [Writer0]
closed [Thread_safe_pipe]
closed writer blocks the current thread until the pipe is closed.
closedir [Unix_syscalls]
command [Async_sys]
command_exn [Async_sys]
compare [Unix_syscalls.Socket.Address.Inet]
compare [Unix_syscalls.Socket.Address.Unix]
compare [Unix_syscalls.Inet_addr]
connect [Unix_syscalls.Socket]
connect_interruptible [Unix_syscalls.Socket]
consume [Reader0.Internal]
consumer_left [Writer0.Fields]
consumer_left [Writer0]
consumer_left [Writer]
consumer_left t returns a deferred that becomes determined when t attempts to write to a pipe that broke because the consumer on the other side left.
contents [Reader]
contents t returns the string corresponding to the full contents (up to EOF) of the reader.
contents [Reader0.Internal]
contents [Reader0]
copy [Read_write]
core_scheduler [Raw_scheduler.Fields]
core_scheduler [Raw_scheduler]
cores [Unix_syscalls]
cores () Returns the number of cores
create [Writer0.Check_buffer_age]
create [Writer0.Fields]
create [Writer0]
create [Thread_pool]
create ~max_num_threads returns a new thread pool.
create [Writer]
create ?buf_len ?syscall ?buffer_age_limit fd creates a new writer.
create [Thread_safe_pipe]
create () returns a reader end, which must be used inside async, and a writer end, which must be used outside async.
create [Signal_manager]
create creates and returns a signal manager t.
create [Read_write]
create [Reader]
create ~buf_len fd creates a new reader that is reading from fd.
create [Reader0.Internal.Fields]
create [Reader0.Internal]
create [Unix_syscalls.Group.Fields]
create [Unix_syscalls.Passwd.Fields]
create [Unix_syscalls.Socket.Address.Inet]
create [Unix_syscalls.Socket.Address.Unix]
create [Unix_syscalls.Socket]
create [Unix_syscalls.Stats.Fields]
create [Reader0]
create [Raw_signal_manager.Handlers]
create [Raw_signal_manager]
create [Raw_scheduler.Fields]
create [Raw_scheduler]
create [Raw_fd.T.Fields]
create [Raw_fd]
create [Process]
create ~prog ~args ?working_dir ?env () uses fork+exec to create a child process that runs the executable prog with args as arguments.
create [Io_stats]
create [In_thread.Helper_thread]
create ?name () creates a new helper thread.
create [Interruptor]
create [File_descr_watcher_intf.S]
create ~num_file_descrs creates a new file-descr-watcher that is able to watch file descriptors in
 [0, num_file_descrs) 
.
create [Fd_by_descr]
create [Fd]
create kind file_descr creates a new t of the underlying kind and file descriptor.
create [Busy_pollers]
create () creates a new empty set.
create_bind_any [Unix_syscalls.Socket.Address.Inet]
create_both [Read_write]
create_fd [Raw_scheduler]
create_fn [Read_write]
create_helper_thread [Thread_pool]
create_helper_thread ?priority ?name t creates a new helper thread.
create_with [Read_write]
createi [Read_write]
ctime [Unix_syscalls.Stats.Fields]
ctime [Unix_syscalls.Stats]
current_execution_context [Raw_scheduler]
current_thread_id [Raw_scheduler]
cycle_count [Scheduler]
cycle_count () returns the total number of async cycles that have happened.
cycle_count [Raw_scheduler]
cycle_start [Scheduler]
cycle_start () returns the result of Time.now () called at the beginning of cycle.
cycle_start [Raw_scheduler]
cycle_times [Scheduler]
cycle_times () returns a stream that will have one element for each cycle that Async runs, with the amount of time that the cycle took (as determined by calls to Time.now at the beginning and end of the cycle).
cycle_times [Raw_scheduler]

D
debug [Writer0]
debug [Unix_syscalls.Socket.Opt]
debug [Raw_scheduler]
debug [Raw_fd]
dec_num_active_syscalls_fd [Raw_scheduler]
default_handle_thread_pool_stuck [Raw_scheduler]
default_name [Thread_pool.Helper_thread]
default_name t returns the name that will be used for work performed by t, unless that work is added with an overriding name
default_priority [Thread_pool.Helper_thread]
default_priority t returns the priority that will be used for work performed by t, unless that work is added with an overriding priority.
default_priority [Thread_pool]
default_priority t returns the priority that will be used for work performed by t, unless that work is added with an overriding priority.
deferred [Thread_safe]
deferred () returns (d, fill) where d is a deferred that will become determined with value v once fill v is called.
deliver [Raw_signal_manager.Handlers]
destroy [Writer0.Check_buffer_age]
destroy [Reader0.Internal]
detect_stuck_thread_pool [Raw_scheduler]
dev [Unix_syscalls.Stats.Fields]
dev [Unix_syscalls.Stats]
die [Writer0]
dir [Unix_syscalls.Passwd.Fields]
dir [Unix_syscalls.Passwd]
do_read [Reader0]
do_read_k [Reader0]
don't_finish_before [Shutdown]
don't_finish_before d causes shutdown to wait until d becomes determined before finishing.
dontroute [Unix_syscalls.Socket.Opt]
drain [Reader]
drain t reads and ignores all data from t until it hits EOF, and then closes t.
drain [Reader0]
dummy [Writer0.Check_buffer_age]
dummy_iovec [Writer0]

E
empty [File_descr_watcher_intf.Post]
empty_buf [Reader0.Internal]
ensure_can_write [Writer0]
env_of_sexp [Process]
env specifies how to construct the environment that the child process will start with.
environment [Unix_syscalls]
epoll [Epoll_file_descr_watcher]
Returns the underlying epoll value.
eprintf [Async_print]
equal [Raw_fd]
error [Unix_syscalls.Socket.Opt]
error_of_sexp [Unix_syscalls]
every_ready_to [Fd]
every_ready_to t read_write f x is like interruptible_every_ready_to, but without the possibility of interruption.
executable_name [Async_sys]
execution_mode [Async_sys]
exists [Writer0.Fields]
exists [Read_write]
exists [Reader0.Internal.Fields]
exists [Unix_syscalls.Group.Fields]
exists [Unix_syscalls.Passwd.Fields]
exists [Unix_syscalls.Stats.Fields]
exists [Raw_scheduler.Fields]
exists [Raw_fd.T.Fields]
exit [Std]
exit [Shutdown]
exit ?force status is shutdown ?force status; Deferred.never ().

F
fchmod [Unix_syscalls]
fchown [Unix_syscalls]
fcntl_getfl [Unix_syscalls]
fcntl_getfl and fcntl_setf are deferred wrappers around the corresponding functions in Core.Unix for accessing the open-file-descriptor table.
fcntl_setfl [Unix_syscalls]
fd [Writer0.Fields]
fd [Writer0]
fd [Writer]
fd t
fd [Reader]
fd t
fd [Reader0.Internal.Fields]
fd [Reader0.Internal]
fd [Unix_syscalls.Socket]
fd [Reader0]
fd_by_descr [Raw_scheduler.Fields]
fd_by_descr [Raw_scheduler]
fd_closed [Writer0]
fdatasync [Writer0]
fdatasync [Writer]
fdatasync [Unix_syscalls]
fds_whose_watching_has_changed [Raw_scheduler.Fields]
fds_whose_watching_has_changed [Raw_scheduler]
file_contents [Reader]
file_contents file returns the string with the full contents of the file
file_contents [Reader0]
file_descr [Raw_fd.T.Fields]
file_descr [Raw_fd.T]
file_descr_exn [Fd]
file_descr_exn t returns the file descriptor underlying t, unless is_closed t, in which case it raises.
file_descr_watcher [Raw_scheduler.Fields]
file_descr_watcher [Raw_scheduler]
file_exists [Async_sys]
file_exists_exn [Async_sys]
file_lines [Reader]
file_lines file returns a list of the lines in the file.
file_lines [Reader0]
fill_flushes [Writer0]
final_flush [Writer0]
find [Fd_by_descr]
find_local [Scheduler]
find_local key returns the value associated to key in the current execution context.
finished_read [Reader0]
finished_with [Thread_pool]
finished_with t makes it an error to subsequently call add_work* t or create_helper_thread t.
finished_with_helper_thread [Thread_pool]
finished_with_helper_thread t helper_thread informs thread pool t that no future work will be added for helper_thread, and makes it an error to in the future add work for helper_thread.
first_char [Reader0.Internal]
flip [Read_write.Key]
flush_at_shutdown_elt [Writer0.Fields]
flush_at_shutdown_elt [Writer0]
flushed [Writer0]
flushed [Writer]
flushed t returns a deferred that will become determined when all prior writes complete (i.e.
flushed_time [Writer0]
flushed_time [Writer]
flushes [Writer0.Fields]
flushes [Writer0]
fold [Writer0.Fields.Direct]
fold [Writer0.Fields]
fold [Read_write]
fold [Reader0.Internal.Fields.Direct]
fold [Reader0.Internal.Fields]
fold [Unix_syscalls.Group.Fields.Direct]
fold [Unix_syscalls.Group.Fields]
fold [Unix_syscalls.Passwd.Fields.Direct]
fold [Unix_syscalls.Passwd.Fields]
fold [Unix_syscalls.Stats.Fields.Direct]
fold [Unix_syscalls.Stats.Fields]
fold [Raw_scheduler.Fields.Direct]
fold [Raw_scheduler.Fields]
fold [Raw_fd.T.Fields.Direct]
fold [Raw_fd.T.Fields]
fold [Fd_by_descr]
fold_fields [Scheduler]
fold_fields [Raw_scheduler]
foldi [Read_write]
for_all [Writer0.Fields]
for_all [Read_write]
for_all [Reader0.Internal.Fields]
for_all [Unix_syscalls.Group.Fields]
for_all [Unix_syscalls.Passwd.Fields]
for_all [Unix_syscalls.Stats.Fields]
for_all [Raw_scheduler.Fields]
for_all [Raw_fd.T.Fields]
force_current_cycle_to_end [Scheduler]
force_current_cycle_to_end () causes no more normal priority jobs to run in the current cycle, and for the end-of-cycle jobs (i.e.
force_current_cycle_to_end [Raw_scheduler]
fork_exec [Unix_syscalls]
fork_exec ~prog ~args ?path ?env forks and execs prog with args, and returns the child pid.
fprintf [Async_print]
fstat [Unix_syscalls]
fsync [Writer0]
fsync [Writer]
fsync [Unix_syscalls]
ftruncate [Unix_syscalls]

G
gecos [Unix_syscalls.Passwd.Fields]
gecos [Unix_syscalls.Passwd]
gen_load_exn [Reader0]
gen_read_sexp [Reader0.Internal]
gen_read_sexps [Reader0.Internal]
get [Read_write]
get [Io_stats]
get_data [Reader0.Internal]
get_error [Reader0]
get_handlers [Raw_signal_manager]
get_load_result_exn [Reader0]
getbyaddr [Unix_syscalls.Host]
getbyaddr_exn [Unix_syscalls.Host]
getbygid [Unix_syscalls.Group]
getbygid_exn [Unix_syscalls.Group]
getbyname [Unix_syscalls.Group]
getbyname [Unix_syscalls.Passwd]
getbyname [Unix_syscalls.Host]
getbyname_exn [Unix_syscalls.Group]
getbyname_exn [Unix_syscalls.Passwd]
getbyname_exn [Unix_syscalls.Host]
getbyuid [Unix_syscalls.Passwd]
getbyuid_exn [Unix_syscalls.Passwd]
getcwd [Unix_syscalls]
getcwd [Async_sys]
getegid [Unix_syscalls]
getenv [Unix_syscalls]
getenv [Async_sys]
getenv_exn [Unix_syscalls]
getenv_exn [Async_sys]
geteuid [Unix_syscalls]
getgid [Unix_syscalls]
gethostname [Unix_syscalls]
getlogin [Unix_syscalls]
Return the login name of the user executing the process.
getopt [Unix_syscalls.Socket]
getpeername [Unix_syscalls.Socket]
getpid [Unix_syscalls]
getppid [Unix_syscalls]
getppid_exn [Unix_syscalls]
getsockname [Unix_syscalls.Socket]
gettimeofday [Unix_syscalls]
getuid [Unix_syscalls]
gid [Unix_syscalls.Group.Fields]
gid [Unix_syscalls.Group]
gid [Unix_syscalls.Passwd.Fields]
gid [Unix_syscalls.Passwd]
gid [Unix_syscalls.Stats.Fields]
gid [Unix_syscalls.Stats]
give_buf [Writer0]
gmtime [Unix_syscalls]
go [Scheduler]
go ?raise_unhandled_exn () passes control to Async, at which point Async starts running handlers, one by one without interruption, until there are no more handlers to run.
go [Raw_scheduler]
go_main [Scheduler]
go_main is like go, except that one supplies a main function that will be run to initialize the async computation, and that go_main will fail if any async has been used prior to go_main being called.
go_main [Raw_scheduler]
got_bytes [Writer0]

H
handle [Signal]
handle ?stop signals ~f arranges so that whenever a signal in signals is delivered, f is called on that signal.
handle_default [Signal]
We override values from Core.Std.Signal that we don't want people to use with Async.
handle_delivered [Signal_manager]
handle_delivered t runs all signal handlers on the signals that have been delivered but not yet handled.
handle_delivered [Raw_signal_manager]
handle_thread_pool_stuck [Scheduler]
handle_thread_pool_stuck f causes f to run whenever async detects its thread pool is stuck (i.e.
handle_thread_pool_stuck [Raw_scheduler.Fields]
handle_thread_pool_stuck [Raw_scheduler]
has_thread_available [Thread_pool]
has_thread_available t returns true if t has a thread available to do work.
have_address_in_common [Unix_syscalls.Host]
have_called_go [Raw_scheduler.Fields]
have_called_go [Raw_scheduler]
have_lock_do_cycle [Raw_scheduler]
have_set_nonblock [Raw_fd.T.Fields]
have_set_nonblock [Raw_fd.T]

I
i_am_the_scheduler [Raw_scheduler]
id [Writer0.Fields]
id [Writer0]
id [Writer]
id t
id [Reader]
id t
id [Reader0.Internal.Fields]
id [Reader0.Internal]
id [Reader0]
ignore [Signal]
inc_num_active_syscalls [Raw_fd]
inet [Unix_syscalls.Socket.Family]
inet4_addr_of_int32 [Unix_syscalls.Inet_addr]
inet4_addr_to_int32_exn [Unix_syscalls.Inet_addr]
infer_using_stat [Fd.Kind]
info [Raw_fd.T.Fields]
info [Raw_fd.T]
info [Fd]
init [Raw_scheduler]
ino [Unix_syscalls.Stats.Fields]
ino [Unix_syscalls.Stats]
install_handler [Signal_manager]
install_handler [Raw_signal_manager]
interactive [Async_sys]
interruptible_every_ready_to [Fd]
interruptible_every_ready_to t read_write ~interrupt f a enqueus a job to run f a every time the file descriptor underlying t can be read from or written to without blocking and returns a deferred that will become determined when interrupt becomes determined or the file descriptor is closed.
interruptible_ready_to [Fd]
interruptible_ready_to t read_write ~interrupt returns a deferred that will become determined when the file descriptor underlying t can be read from or written to without blocking, or when interrupt becomes determined.
interruptor [Raw_scheduler.Fields]
interruptor [Raw_scheduler]
invariant [Writer0]
invariant [Reader0.Internal]
invariant [Reader0]
invariant [Raw_signal_manager]
invariant [Raw_scheduler]
invariant [Raw_fd.Watching]
invariant [Raw_fd]
io_stats [Writer0]
io_stats [Writer]
io_stats Overall IO statistics for all writers
io_stats [Reader]
io_stats Overall IO statistics for all readers
io_stats [Reader0.Internal]
io_stats [Reader0]
iovecs_length [Writer0]
is_closed [Writer0]
is_closed [Writer]
is_closed [Thread_safe_pipe]
is_closed [Reader]
is_closed [Reader0.Internal]
is_closed [Reader0]
is_closed [Raw_fd]
is_closed [Fd]
is_directory [Async_sys]
is_directory_exn [Async_sys]
is_empty [Busy_pollers]
is_file [Async_sys]
is_file_exn [Async_sys]
is_main_thread [Raw_scheduler]
is_managed_by_async [Signal]
is_managed_by_async signal returns true iff signal is being managed by async, and hence its default behavior is no longer in effect.
is_managing [Signal_manager]
is_managing t signal returns true iff manage t signal has been called
is_managing [Raw_signal_manager]
is_open [Writer0]
is_open [Writer]
is_open [Raw_fd.State]
is_open [Raw_fd]
is_open [Fd]
is_open t is not (is_closed t)
is_ready_to_initialize [Scheduler]
is_ready_to_initialize [Raw_scheduler]
is_running [Scheduler]
is_running () returns true if the scheduler has been started.
is_running [Raw_scheduler.Fields]
is_running [Raw_scheduler]
is_stopped_permanently [Writer0]
iter [Writer0.Fields.Direct]
iter [Writer0.Fields]
iter [Read_write]
iter [Reader0.Internal.Fields.Direct]
iter [Reader0.Internal.Fields]
iter [Unix_syscalls.Group.Fields.Direct]
iter [Unix_syscalls.Group.Fields]
iter [Unix_syscalls.Passwd.Fields.Direct]
iter [Unix_syscalls.Passwd.Fields]
iter [Unix_syscalls.Stats.Fields.Direct]
iter [Unix_syscalls.Stats.Fields]
iter [Raw_scheduler.Fields.Direct]
iter [Raw_scheduler.Fields]
iter [Raw_fd.T.Fields.Direct]
iter [Raw_fd.T.Fields]
iter [File_descr_watcher_intf.S]
iter t ~f iterates over every file descriptor in the map, apply f to it once for each of {`Read,`Write} that it is being watched for.
iter [Fd_by_descr]
iteri [Read_write]

K
keepalive [Unix_syscalls.Socket.Opt]
kind [Unix_syscalls.Stats.Fields]
kind [Unix_syscalls.Stats]
kind [Raw_fd.T.Fields]
kind [Raw_fd.T]
kind [Fd]
kind t returns the kind of file descriptor that t is.

L
last_read_time [Reader]
last_read_time t returns time of the most recent read system call that returned data.
last_read_time [Reader0.Internal.Fields]
last_read_time [Reader0.Internal]
last_read_time [Reader0]
line_delimiter_pred [Reader0.Internal]
lines [Reader]
lines t reads all the lines from t and puts them in the pipe, one line per pipe element.
lines [Reader0.Internal]
lines [Reader0]
linger [Unix_syscalls.Socket.Opt]
link [Unix_syscalls]
listen [Unix_syscalls.Socket]
load_sexp [Reader]
load_sexp [Reader0]
load_sexp_exn [Reader]
load_sexp_exn [Reader0]
load_sexps [Reader]
load_sexps [Reader0]
load_sexps_exn [Reader]
load_sexps_exn [Reader0]
localhost [Unix_syscalls.Inet_addr]
127.0.0.1
localhost_inet6 [Unix_syscalls.Inet_addr]
(::1)
localtime [Unix_syscalls]
lock [Raw_scheduler]
lockf [Unix_syscalls]
lockf fd read_or_write ?len exclusively locks for reading/writing the section of the open file fd specified by the current file position and len (see man lockf).
ls_dir [Async_sys]
lseek [Reader]
lseek t offset ~mode clears t's buffer and calls Unix.lseek on t's file descriptor.
lseek [Unix_syscalls]
lseek [Reader0]
lstat [Unix_syscalls]

M
make_creator [Writer0.Fields]
make_creator [Reader0.Internal.Fields]
make_creator [Unix_syscalls.Group.Fields]
make_creator [Unix_syscalls.Passwd.Fields]
make_creator [Unix_syscalls.Stats.Fields]
make_creator [Raw_scheduler.Fields]
make_creator [Raw_fd.T.Fields]
manage [Signal_manager]
manage t signal causes t to manage signal, thus overriding default_sys_behavior for that signal, and any other OCaml handler for that signal.
manage [Raw_signal_manager]
map [Writer0.Fields]
map [Read_write]
map [Reader0.Internal.Fields]
map [Reader0.Read_result.Z]
map [Unix_syscalls.Group.Fields]
map [Unix_syscalls.Passwd.Fields]
map [Unix_syscalls.Stats.Fields]
map [Raw_scheduler.Fields]
map [Raw_fd.T.Fields]
map_poly [Writer0.Fields]
map_poly [Reader0.Internal.Fields]
map_poly [Unix_syscalls.Group.Fields]
map_poly [Unix_syscalls.Passwd.Fields]
map_poly [Unix_syscalls.Stats.Fields]
map_poly [Raw_scheduler.Fields]
map_poly [Raw_fd.T.Fields]
mapi [Read_write]
max_inter_cycle_timeout [Raw_scheduler.Fields]
max_inter_cycle_timeout [Raw_scheduler]
max_num_threads [Thread_pool]
max_num_threads t returns the maximum number of threads that t is allowed to create.
maybe_calibrate_tsc [Raw_scheduler]
maybe_start_closing_fd [Raw_scheduler]
maybe_start_writer [Writer0]
mcast_join [Unix_syscalls.Socket]
mcast_leave [Unix_syscalls.Socket]
mcast_loop [Unix_syscalls.Socket.Opt]
mcast_ttl [Unix_syscalls.Socket.Opt]
mem [Unix_syscalls.Group.Fields]
mem [Unix_syscalls.Group]
mk_iovecs [Writer0]
mkdir [Unix_syscalls]
mkdtemp [Unix_syscalls]
mkfifo [Unix_syscalls]
Create a named pipe with the given permissions.
mkstemp [Unix_syscalls]
mkstemp prefix creates and opens a unique temporary file with prefix, automatically appending a suffix of six random characters to make the name unique.
mktime [Unix_syscalls]
monitor [Writer0.Fields]
monitor [Writer0]
monitor [Writer]
monitor t returns the writer's monitor.
mtime [Unix_syscalls.Stats.Fields]
mtime [Unix_syscalls.Stats]
mutex [Raw_scheduler.Fields]
mutex [Raw_scheduler]
mutex_for_initializing_the_one_and_only_ref [Raw_scheduler]

N
name [Unix_syscalls.Group.Fields]
name [Unix_syscalls.Group]
name [Unix_syscalls.Passwd.Fields]
name [Unix_syscalls.Passwd]
names [Writer0.Fields]
names [Reader0.Internal.Fields]
names [Unix_syscalls.Group.Fields]
names [Unix_syscalls.Passwd.Fields]
names [Unix_syscalls.Stats.Fields]
names [Raw_scheduler.Fields]
names [Raw_fd.T.Fields]
newline [Writer0]
newline [Writer]
newline t is write_char t '\n'
next_tsc_calibration [Raw_scheduler.Fields]
next_tsc_calibration [Raw_scheduler]
nice [Unix_syscalls]
nlink [Unix_syscalls.Stats.Fields]
nlink [Unix_syscalls.Stats]
nodelay [Unix_syscalls.Socket.Opt]
num_active_syscalls [Raw_fd.T.Fields]
num_active_syscalls [Raw_fd.T]
num_threads [Thread_pool]
num_threads t returns the number of threads that the pool t has created.
num_work_completed [Thread_pool]

O
ocaml_version [Async_sys]
of_fd [Unix_syscalls.Socket]
of_in_channel [Reader]
of_in_channel [Reader0.Internal]
of_in_channel [Reader0]
of_in_channel [Fd]
of_in_channel and of_out_channel create an fd from their underlying file descriptor.
of_in_channel_auto [Fd]
of_in_channel_auto ic is just like of_in_channel, but uses fstat to determine the kind.
of_out_channel [Writer0]
of_out_channel [Writer]
of_out_channel [Fd]
of_out_channel_auto [Fd]
of_out_channel_auto ic is just like of_out_channel, but uses fstat to determine the kind.
of_pipe [Writer]
of_pipe info pipe_w returns a writer t such that data written to t will appear on pipe_w.
of_pipe [Reader]
of_pipe info pipe_r returns a reader t that receives all the data from pipe_r.
of_string [Unix_syscalls.Inet_addr]
of_string_or_getbyname [Unix_syscalls.Inet_addr]
of_string_or_getbyname hostname does a DNS lookup of hostname and returns the resulting IP address.
oobinline [Unix_syscalls.Socket.Opt]
open_file [Writer0]
open_file [Writer]
open_file file opens file for writing and returns a writer for it.
open_file [Reader]
open_file file opens file for reading and returns a reader reading from it.
open_file [Reader0.Internal]
open_file [Reader0]
open_flags [Writer0.Fields]
open_flags [Writer0]
open_flags [Reader0.Internal.Fields]
open_flags [Reader0.Internal]
opendir [Unix_syscalls]
openfile [Unix_syscalls]
os_type [Async_sys]

P
passwd [Unix_syscalls.Group.Fields]
passwd [Unix_syscalls.Group]
passwd [Unix_syscalls.Passwd.Fields]
passwd [Unix_syscalls.Passwd]
perm [Unix_syscalls.Stats.Fields]
perm [Unix_syscalls.Stats]
pid [Process]
pipe [Writer0]
pipe [Writer]
pipe t returns the writing end of a pipe attached to t that pushes back when t cannot keep up with the data being pushed in.
pipe [Reader]
pipe t returns the reader end of a pipe that will continually be filled with chunks of data from the underlying Reader.t.
pipe [Unix_syscalls]
The info supplied to pipe is debugging information that will be included in the returned Fds.
pipe [Reader0]
pipe_of_squeue [In_thread]
pipe_of_squeue squeue returns a pipe p and consumes the contents squeue, placing them in p.
poll [Busy_pollers]
poll t runs every function in the set t.
port [Unix_syscalls.Socket.Address.Inet]
pos [Reader0.Internal.Fields]
pos [Reader0.Internal]
post_check [File_descr_watcher_intf.S]
post_check t check_result returns the file descriptors available for read and write.
pre_check [File_descr_watcher_intf.S]
prerr_char [Async_print]
prerr_endline [Async_print]
prerr_float [Async_print]
prerr_int [Async_print]
prerr_newline [Async_print]
prerr_string [Async_print]
preserve_execution_context [Scheduler]
preserve_execution_context t f saves the current execution context and returns a function g such that g a runs f a in the saved execution context.
preserve_execution_context' [Scheduler]
print_char [Async_print]
print_endline [Async_print]
print_float [Async_print]
print_int [Async_print]
print_newline [Async_print]
print_string [Async_print]
printf [Async_print]
producers_to_flush_at_close [Writer0.Fields]
producers_to_flush_at_close [Writer0]
pushback [Thread_safe_pipe]
pushback writer blocks the current thread until the pipe is empty or closed.
putenv [Unix_syscalls]

R
raise_when_consumer_leaves [Writer0.Fields]
raise_when_consumer_leaves [Writer0]
raise_when_consumer_leaves [Writer]
rcvbuf [Unix_syscalls.Socket.Opt]
rcvlowat [Unix_syscalls.Socket.Opt]
rcvtimeo [Unix_syscalls.Socket.Opt]
rdev [Unix_syscalls.Stats.Fields]
rdev [Unix_syscalls.Stats]
read [Reader]
read t ?pos ?len buf reads up to len bytes into buf, blocking until some data is available or end-of-input is reached.
read [Reader0.Internal.Read]
read [Reader0.Internal]
read [Reader0]
read_all [Reader]
read_all t read_one returns a pipe that receives all values read from t by repeatedly using read_one t.
read_all [Reader0.Internal]
read_all [Reader0]
read_annotated_sexps [Reader0.Internal]
read_annotated_sexps [Reader0]
read_available [Reader0.Internal.Read]
read_bigsubstring [Reader]
read_bigsubstring [Reader0.Internal]
read_bigsubstring [Reader0]
read_bin_prot [Reader]
read_bin_prot ?max_len t bp_reader reads the next binary protocol message using binary protocol reader bp_reader.
read_bin_prot [Reader0.Internal]
read_bin_prot [Reader0]
read_char [Reader]
read_char [Reader0.Internal]
read_char [Reader0]
read_fd [Interruptor]
read_line [Reader]
read_line t reads up to, and including the next newline (\n) character (or \r\n) and returns a freshly-allocated string containing everything up to but not including the newline character.
read_line [Reader0.Internal]
read_line [Reader0]
read_line_gen [Reader0.Internal]
read_marshal [Reader]
Like read_marshal_raw, but unmarshal the value after reading it
read_marshal [Reader0.Internal]
read_marshal [Reader0]
read_marshal_raw [Reader]
Read and return a buffer containing one marshaled value, but don't unmarshal it.
read_marshal_raw [Reader0.Internal]
read_marshal_raw [Reader0]
read_one_chunk_at_a_time [Reader]
read_one_chunk_at_a_time [Reader0.Internal]
read_one_chunk_at_a_time [Reader0]
read_sexp [Reader]
read_sexp t reads the next sexp.
read_sexp [Reader0]
read_sexps [Reader]
read_sexps t reads all the sexps and returns them as a pipe.
read_sexps [Reader0.Internal]
read_sexps [Reader0]
read_substring [Reader]
read_substring t ss reads up to Substring.length ss bytes into ss, blocking until some data is available or Eof is reched.
read_substring [Reader0.Internal]
read_substring [Reader0]
read_until [Reader]
read_until t pred ~keep_delim reads until it hits a delimiter c such that:
read_until [Reader0.Internal]
read_until [Reader0]
read_until_gen [Reader0.Internal]
read_until_max [Reader]
just like read_until, except you have the option of specifiying a maximum number of chars to read.
read_until_max [Reader0]
readdir [Unix_syscalls]
readdir [Async_sys]
readlink [Unix_syscalls]
ready_fold [Fd]
ready_fold t ~init ~f folds f over t, handling EWOULDBLOCK/EAGAIN and EINTR by retrying when ready.
ready_to [Fd]
ready_to t read_write is like interruptible_ready_to, but without the possibility of interruption.
really_read [Reader]
really_read t buf ?pos ?len reads until it fills len bytes of buf starting at pos or runs out of input.
really_read [Reader0.Internal.Read]
really_read [Reader0.Internal]
really_read [Reader0]
really_read_bigstring [Reader0.Internal]
really_read_bigsubstring [Reader]
really_read_bigsubstring [Reader0.Internal]
really_read_bigsubstring [Reader0]
really_read_line [Reader]
really_read_line ~wait_time t reads up to, and including the next newline (\n) character and returns an optional, freshly-allocated string containing everything up to but not including the newline character.
really_read_line [Reader0.Internal]
really_read_line [Reader0]
really_read_substring [Reader]
really_read_substring [Reader0.Internal]
really_read_substring [Reader0]
recv [Reader]
recv t returns a string that was written with Writer.send
recv [Reader0.Internal]
recv [Reader0]
remove [Unix_syscalls]
remove [Raw_signal_manager.Handlers]
remove [Fd_by_descr]
remove [Async_sys]
remove_fd [Raw_scheduler]
remove_handler [Signal_manager]
remove_handler handler causes the particular handler to no longer handle the signals it was registered to handle.
remove_handler [Raw_signal_manager]
rename [Unix_syscalls]
rename [Async_sys]
replace [Read_write]
replace [Fd]
replace t kind is for internal use only, by Unix_syscalls.
replace_all [Read_write]
report_long_cycle_times [Scheduler]
report_long_cycle_times ?cutoff () sets up something that will print a warning to stderr whenever there is an async cycle that is too long, as specified by cutoff, whose default is 1s.
report_long_cycle_times [Raw_scheduler]
request_start_watching [Raw_scheduler]
request_stop_watching [Raw_scheduler]
reset_in_forked_process [Scheduler]
If a process that has already created, but not started, the async scheduler would like to fork, and would like the child to have a clean async, i.e.
reset_in_forked_process [Raw_scheduler]
reset_in_forked_process [File_descr_watcher_intf.S]
return [Reader0.Read_result.Z]
reuseaddr [Unix_syscalls.Socket.Opt]
rewinddir [Unix_syscalls]
rmdir [Unix_syscalls]
run [Process]
run creates a process and waits for it to complete.
run [In_thread]
run ?priority ?thread ?name f runs f () in another thread and returns the result as a Deferred in the Async world.
run_in_async [Thread_safe]
run_in_async f acquires the async lock and runs f () while holding the lock.
run_in_async_exn [Thread_safe]
run_in_async_wait [Thread_safe]
run_in_async_wait f is like block_on_async f, except that it must be called from a thread outside async.
run_in_async_wait_exn [Thread_safe]
run_in_async_with_optional_cycle [Thread_safe]
run_in_async_with_optional_cycle f acquires the async lock and runs f () while holding the lock.
run_lines [Process]
run_lines is like run but returns the lines of stdout as a string list, using String.split_lines.

S
save [Writer0]
save [Writer]
save_lines [Writer0]
save_lines [Writer]
save_lines file lines writes all lines in lines to file, with each line followed by a newline.
save_sexp [Writer0]
save_sexp [Writer]
save_sexp t sexp writes sexp to t, followed by a newline.
schedule [Std]
schedule [Scheduler]
Just like schedule', but doesn't require thunk to return a deferred.
schedule' [Std]
schedule' [Scheduler]
Just like within', but instead of running thunk right now, adds it to the async queue to be run with other async jobs.
schedule_bigstring [Writer0]
schedule_bigstring [Writer]
schedule_bigstring t bstr schedules a write of bigstring bstr.
schedule_bigsubstring [Writer0]
schedule_bigsubstring [Writer]
schedule_iovec [Writer0]
schedule_iovec [Writer]
schedule_iovec t iovec schedules a write of I/O-vector iovec.
schedule_iovecs [Writer0]
schedule_iovecs [Writer]
schedule_iovecs t iovecs like Writer.schedule_iovec, but takes a whole queue iovecs of I/O-vectors as argument.
schedule_unscheduled [Writer0]
scheduled [Writer0.Fields]
scheduled [Writer0]
scheduled_back [Writer0.Fields]
scheduled_back [Writer0]
scheduled_bytes [Writer0.Fields]
scheduled_bytes [Writer0]
scheduler_thread_id [Raw_scheduler.Fields]
scheduler_thread_id [Raw_scheduler]
send [Writer0]
send [Writer]
send t s writes a string to the channel that can be read back using Reader.recv
set [Signal]
set [Read_write]
set [File_descr_watcher_intf.S]
set alters the map of file descriptors being watched.
set_available [Reader0.Internal]
set_back [Writer0]
set_background_writer_state [Writer0]
set_bin_prot_buf [Reader0.Internal]
set_bin_prot_len_buf [Reader0.Internal]
set_buf [Writer0]
set_buf [Reader0.Internal]
set_buffer_age_limit [Writer0]
set_buffer_age_limit [Writer]
set_buffer_age_limit t buffer_age_limit replaces the existing buffer age limit with the new one.
set_busy_poll_thread_is_running [Raw_scheduler]
set_bytes_received [Writer0]
set_bytes_written [Writer0]
set_check_buffer_age [Writer0]
set_check_invariants [Scheduler]
set_check_invariants do_check sets whether async should check invariants of its internal data structures.
set_check_invariants [Raw_scheduler]
set_close_may_destroy_buf [Reader0.Internal]
set_close_on_exec [Unix_syscalls]
set_close_state [Writer0]
set_detect_invalid_access_from_thread [Scheduler]
set_detect_invalid_access_from_thread do_check sets whether async routines should check if they are being accessed from some thread other than the thread currently holding the async lock, which is not allowed and can lead to very confusing behavior.
set_detect_invalid_access_from_thread [Raw_scheduler]
set_fd [Writer0]
set_fd [Writer]
set_fd t fd sets the fd used by t for its underlying system calls.
set_fd_desired_watching [Raw_scheduler]
set_fds_whose_watching_has_changed [Raw_scheduler]
set_flush_at_shutdown_elt [Writer0]
set_handle_thread_pool_stuck [Raw_scheduler]
set_have_called_go [Raw_scheduler]
set_have_set_nonblock [Raw_fd.T]
set_info [Raw_fd.T]
set_is_running [Raw_scheduler]
set_kind [Raw_fd.T]
set_last_read_time [Reader0.Internal]
set_max_inter_cycle_timeout [Scheduler]
set_max_inter_cycle_timeout span sets the maximum amount of time the scheduler will remain blocked (on epoll or select) between cycles.
set_max_inter_cycle_timeout [Raw_scheduler]
set_max_num_jobs_per_priority_per_cycle [Scheduler]
set_max_num_jobs_per_priority_per_cycle int sets the maximum number of jobs that will be done at each priority within each async cycle.
set_max_num_jobs_per_priority_per_cycle [Raw_scheduler]
set_next_tsc_calibration [Raw_scheduler]
set_nonblock_if_necessary [Raw_fd]
set_num_active_syscalls [Raw_fd.T]
set_pos [Reader0.Internal]
set_raise_when_consumer_leaves [Writer0]
set_raise_when_consumer_leaves [Writer]
set_raise_when_consumer_leaves t bool sets the raise_when_consumer_leaves flag of t, which determies how t responds to a write system call raising EPIPE and ECONNRESET (see create).
set_record_backtraces [Scheduler]
set_record_backtraces do_record sets whether async should keep in the execution context the history of stack backtraces (obtained via Backtrace.get) that led to the current job.
set_record_backtraces [Raw_scheduler]
set_scheduled [Writer0]
set_scheduled_back [Writer0]
set_scheduled_bytes [Writer0]
set_scheduler_thread_id [Raw_scheduler]
set_state [Reader0.Internal]
set_state [Raw_fd.T]
set_state [Raw_fd]
set_supports_nonblock [Raw_fd.T]
set_timerfd [Raw_scheduler]
set_watching_has_changed [Raw_fd.T]
setopt [Unix_syscalls.Socket]
setuid [Unix_syscalls]
sexp_of_any [Read_write]
sexp_of_buffer_age_limit [Writer0]
sexp_of_buffer_age_limit [Writer]
sexp_of_consumed [Reader0.Internal]
sexp_of_env [Process]
sexp_of_error [Unix_syscalls]
sexp_of_open_flags [Writer0]
sexp_of_open_flags [Reader0.Internal]
sexp_of_read_one_chunk_at_a_time_result [Reader]
read_one_chunk_at_a_time t ~handle_chunk reads into t's internal buffer, and whenever bytes are available, applies handle_chunk to them.
sexp_of_read_one_chunk_at_a_time_result [Reader0.Internal]
sexp_of_read_one_chunk_at_a_time_result [Reader0]
sexp_of_ready_to_result [Raw_fd]
sexp_of_t [Writer0.Check_buffer_age']
sexp_of_t [Writer0]
sexp_of_t [Thread_pool]
sexp_of_t [Writer]
sexp_of_t [Thread_safe_pipe]
sexp_of_t [Signal_manager]
sexp_of_t [Scheduler]
sexp_of_t [Read_write.Mutable]
sexp_of_t [Read_write.Read_only]
sexp_of_t [Read_write.Immutable]
sexp_of_t [Read_write.Key]
sexp_of_t [Read_write]
sexp_of_t [Reader.Read_result]
sexp_of_t [Reader]
sexp_of_t [Reader0.Internal.State]
sexp_of_t [Reader0.Internal]
sexp_of_t [Reader0.Read_result.Z]
sexp_of_t [Unix_syscalls.Group]
sexp_of_t [Unix_syscalls.Passwd]
sexp_of_t [Unix_syscalls.Socket.Address.Inet]
sexp_of_t [Unix_syscalls.Socket.Address.Unix]
sexp_of_t [Unix_syscalls.Socket.Address]
sexp_of_t [Unix_syscalls.Socket]
sexp_of_t [Unix_syscalls.Inet_addr]
sexp_of_t [Unix_syscalls.Stats]
sexp_of_t [Reader0]
sexp_of_t [Raw_signal_manager.Handlers]
sexp_of_t [Raw_signal_manager]
sexp_of_t [Raw_scheduler.File_descr_watcher]
sexp_of_t [Raw_scheduler]
sexp_of_t [Raw_fd.T]
sexp_of_t [Raw_fd.Watching]
sexp_of_t [Raw_fd.State]
sexp_of_t [Raw_fd.Kind]
sexp_of_t [Process.Output]
sexp_of_t [Process]
sexp_of_t [Io_stats]
sexp_of_t [Interruptor]
sexp_of_t [File_descr_watcher_intf.S.Check_result]
sexp_of_t [File_descr_watcher_intf.S.Pre]
sexp_of_t [File_descr_watcher_intf.S]
sexp_of_t [File_descr_watcher_intf.Timeout]
sexp_of_t [File_descr_watcher_intf.Post]
sexp_of_t [Fd_by_descr]
sexp_of_t [Fd]
sexp_of_t [Busy_pollers]
sexp_of_wait_on [Unix_syscalls]
sexp_of_writer [Writer0]
sexp_to_buffer [Writer0]
shell [Unix_syscalls.Passwd.Fields]
shell [Unix_syscalls.Passwd]
shutdown [Std]
shutdown [Shutdown]
shutdown ?force status initiates shutdown, which runs all the at_shutdown functions, waits for them to finish, and then exits with the supplied status.
shutdown [Unix_syscalls.Socket]
shutting_down [Shutdown]
shutting_down () reports whether we are currently shutting down, and if so, with what status.
signal [Signal]
signal_manager [Raw_scheduler.Fields]
signal_manager [Raw_scheduler]
size [Unix_syscalls.Stats.Fields]
size [Unix_syscalls.Stats]
sndbuf [Unix_syscalls.Socket.Opt]
sndlowat [Unix_syscalls.Socket.Opt]
sndtimeo [Unix_syscalls.Socket.Opt]
socketpair [Unix_syscalls]
space [Reader0.Internal]
start_busy_poller_thread_if_not_running [Raw_scheduler]
start_write [Writer0]
stat [Unix_syscalls]
state [Reader0.Internal.Fields]
state [Reader0.Internal]
state [Raw_fd.T.Fields]
state [Raw_fd.T]
stderr [Writer0]
stderr [Writer]
stderr [Process]
stderr [Fd]
stdin [Reader]
stdin is a reader for file descriptor 0.
stdin [Reader0.Internal]
stdin [Reader0]
stdin [Process]
stdin [Fd]
stdin, stdout, and stderr are wrappers around the standard Unix file descriptors.
stdout [Writer0]
stdout [Writer]
stdout and stderr are writers for file descriptors 1 and 2.
stdout [Process]
stdout [Fd]
stdout_and_stderr [Writer0]
stop_permanently [Writer0]
supports_nonblock [Raw_fd.T.Fields]
supports_nonblock [Raw_fd.T]
supports_nonblock [Fd]
supports_nonblock t returns true if t supports nonblocking system calls.
symlink [Unix_syscalls]
sync [Unix_syscalls]
sync_changed_fds_to_file_descr_watcher [Raw_scheduler]
syscall [Writer0.Fields]
syscall [Writer0]
syscall [Syscall]
syscall [Raw_fd]
syscall [In_thread]
syscall f runs f, which should be a single system call, and returns the result, handling the restarting of interrupted system calls.
syscall [Fd]
syscall t f runs Async_unix.syscall with f on the file descriptor underlying t, if is_open t, and returns `Ok or `Error according to f.
syscall_exn [Raw_fd]
syscall_exn [In_thread]
syscall_exn [Fd]
syscall_exn t f is like syscall, except it raises rather than return `Already_closed or `Error.
syscall_in_thread [Fd]
syscall_in_thread t f runs In_thread.syscall with f on the file descriptor underlying t, if is_open t, and returns a deferred that becomes determined with `Ok or `Error when the system call completes.
syscall_in_thread_exn [Fd]
syscall_in_thread_exn is like syscall_in_thread, except it raises rather than return `Already_closed or `Error.
system [Unix_syscalls]
system_exn [Unix_syscalls]

T
t [Scheduler]
t () returns the async scheduler.
t [Raw_scheduler]
t_of_sexp [Read_write.Mutable]
t_of_sexp [Read_write.Read_only]
t_of_sexp [Read_write.Immutable]
t_of_sexp [Read_write.Key]
t_of_sexp [Read_write]
t_of_sexp [Reader.Read_result]
t_of_sexp [Reader0.Internal.State]
t_of_sexp [Reader0.Read_result.Z]
t_of_sexp [Unix_syscalls.Group]
t_of_sexp [Unix_syscalls.Passwd]
t_of_sexp [Unix_syscalls.Socket.Address.Inet]
t_of_sexp [Unix_syscalls.Socket.Address.Unix]
t_of_sexp [Unix_syscalls.Socket.Address]
t_of_sexp [Unix_syscalls.Inet_addr]
t_of_sexp [Unix_syscalls.Stats]
t_of_sexp [Io_stats]
tcgetattr [Unix_syscalls.Terminal_io]
tcp [Unix_syscalls.Socket.Type]
tcsetattr [Unix_syscalls.Terminal_io]
terminating [Signal]
terminating is a list of signals that can be supplied to handle and whose default behavior is to terminate the program: alrm hup int term usr1 usr2.
test_lockf [Unix_syscalls]
lockf_is_locked fd ?len checks the lock on section of the open file fd specified by the current file position and len (see man lockf).
the_one_and_only [Raw_scheduler]
the_one_and_only_ref [Raw_scheduler]
the_one_and_only_uncommon_case [Raw_scheduler]
this_process_became_child_of_init [Unix_syscalls]
this_process_became_child_of_init returns a deferred that becomes determined when the current process becomes a child of init(8).
thread_io_cutoff [Writer0]
thread_pool [Raw_scheduler.Fields]
thread_pool [Raw_scheduler]
thread_safe_check [File_descr_watcher_intf.S]
thread_safe_interrupt [Interruptor]
thread_safe_interrupt t causes read_fd t to become ready for reading.
thread_safe_wakeup_scheduler [Raw_scheduler]
time [Unix_syscalls]
timerfd [Raw_scheduler.Fields]
timerfd [Raw_scheduler]
times [Unix_syscalls]
to_formatter [Writer0]
to_formatter [Writer]
to_formatter t
to_host_and_port [Unix_syscalls.Socket.Address.Inet]
to_int [Raw_fd]
to_int_exn [Fd]
to_int_exn t returns the the underlying file descriptor as an int.
to_list [Writer0.Fields]
to_list [Reader0.Internal.Fields]
to_list [Unix_syscalls.Group.Fields]
to_list [Unix_syscalls.Passwd.Fields]
to_list [Unix_syscalls.Stats.Fields]
to_list [Raw_scheduler.Fields]
to_list [Raw_fd.T.Fields]
to_sockaddr [Unix_syscalls.Socket.Address]
to_string [Unix_syscalls.Socket.Opt]
to_string [Unix_syscalls.Socket.Family]
to_string [Unix_syscalls.Socket.Address.Inet]
to_string [Unix_syscalls.Socket.Address.Unix]
to_string [Unix_syscalls.Socket.Address]
to_string [Unix_syscalls.Inet_addr]
to_string [Unix_syscalls.Stats]
to_string [Fd]
to_string t returns a pretty sexp of the representation of t
too_old [Writer0.Check_buffer_age]
total [Io_stats]
transfer [Writer0]
transfer [Writer]
transfer t pipe_r f repeatedly pulls values from pipe_r, and feeds them to f, which should in turn write them to t.
transfer [Reader]
transfer t pipe_w transfers data from t into pipe_w one chunk at a time (whatever is read from the underlying file descriptor without post-processing).
transfer [Reader0.Internal]
transfer [Reader0]
transition_is_allowed [Raw_fd.State]
truncate [Unix_syscalls]
try_create_timerfd [Raw_scheduler]
try_lock [Raw_scheduler]
try_lockf [Unix_syscalls]
try_lockf fd read_or_write ?len attempts to exclusively lock for reading/writing the section of the open file fd specified by the current file position and len (see man lockf).
typ [Unix_syscalls.Socket.Opt]

U
udp [Unix_syscalls.Socket.Type]
uid [Unix_syscalls.Passwd.Fields]
uid [Unix_syscalls.Passwd]
uid [Unix_syscalls.Stats.Fields]
uid [Unix_syscalls.Stats]
unix [Unix_syscalls.Socket.Type]
unix [Unix_syscalls.Socket.Family]
unix_dgram [Unix_syscalls.Socket.Type]
unlink [Unix_syscalls]
unlock [Raw_scheduler]
unlockf [Unix_syscalls]
unlockf fd ?len unlocks the section of the open file fd specified by the current file position and len (see man lockf).
unsetenv [Unix_syscalls]
update [Io_stats]
update_check_access [Raw_scheduler]
use [Reader0]
utimes [Unix_syscalls]

W
wait [Unix_syscalls]
wait [Process]
wait_nohang [Unix_syscalls]
wait_nohang_untraced [Unix_syscalls]
wait_on_of_sexp [Unix_syscalls]
wait_untraced [Unix_syscalls]
waitpid [Unix_syscalls]
waitpid pid returns a deferred that becomes determined with the child's exit status, when the child process with process id pid exits.
waitpid_exn [Unix_syscalls]
watcher [Raw_scheduler.File_descr_watcher.S]
watching [Raw_fd.T.Fields]
watching [Raw_fd.T]
watching_has_changed [Raw_fd.T.Fields]
watching_has_changed [Raw_fd.T]
when_file_exists [Async_sys]
when_file_exists ?poll_delay file returns a deferred that becomes determined when file exists.
with_close [Writer0]
with_close [Writer]
with_close [Reader]
with_close [Reader0.Internal]
with_close [Reader0]
with_close [Fd]
with_close t f applies f to t, returns the result of f, and closes t.
with_execution_context [Raw_scheduler]
with_file [Writer0]
with_file [Writer]
with_file ~file f opens file for writing, creates a writer t, and runs f t to obtain a deferred d.
with_file [Reader]
with_file file f opens files, creates a reader with it, and passes the reader to f.
with_file [Reader0.Internal]
with_file [Unix_syscalls]
with_file file ~mode ~perm ~f ?exclusive opens file, and applies f to the resulting file descriptor.
with_file [Reader0]
with_file_atomic [Writer0]
with_file_atomic [Writer]
with_file_descr [Raw_fd]
with_file_descr [Fd]
with_file_descr t f runs f on the file descriptor underlying t, if is_open t, and returns `Ok or `Error according to f.
with_file_descr_deferred [Fd]
with_file_descr_deferred t f runs f on the file descriptor underlying t, if is_open t, and returns `Ok or `Error according to f.
with_file_descr_exn [Raw_fd]
with_file_descr_exn [Fd]
with_file_descr_exn is like with_file_descr except that it raises rather than return `Already_closed or `Error.
with_flushed_at_close [Writer0]
with_flushed_at_close [Writer]
with_local [Scheduler]
with_local key value ~f runs f right now with the binding key = value.
with_lock [Raw_scheduler]
with_nonempty_buffer [Reader0.Internal]
with_nonempty_buffer' [Reader0.Internal]
with_reader_exclusive [Reader0.Internal]
with_writer_exclusive [Writer0]
within [Std]
within [Scheduler]
within is like within', but doesn't require thunk to return a deferred.
within' [Std]
within' [Scheduler]
within' f ~monitor ~priority runs f () right now, with the specified block group, monitor, and priority set as specified.
within_context [Scheduler]
within_context context f runs f () right now with the specified execution context.
within_v [Scheduler]
within_v is like within, but allows a value to be returned by f.
word_size [Async_sys]
wordexp [Unix_syscalls]
write [Writer0.Write]
write [Writer0]
write [Writer]
write ?pos ?len t s adds a job to the writer's queue of pending writes.
write [Thread_safe_pipe]
write' [Thread_safe_pipe]
write' and write transfer the element(s) into the pipe and block the current thread until the pipe is empty or closed (like Thread_safe_pipe.pushback).
write_bigstring [Writer0]
write_bigstring [Writer]
write_bigsubstring [Writer0]
write_bigsubstring [Writer]
write_bin_prot [Writer0]
write_bin_prot [Writer]
write_bin_prot writes out a value using its bin_prot sizer/writer pair.
write_byte [Writer0]
write_byte [Writer]
write_byte t i writes one 8-bit integer (as the single character with that code).
write_char [Writer0]
write_char [Writer]
write_char t c writes the character
write_finished [Writer0]
write_line [Writer0]
write_line [Writer]
write_line t s is write t s; newline t.
write_marshal [Writer0]
write_marshal [Writer]
Serialize data using marshal and write it to the writer
write_sexp [Writer0]
write_sexp [Writer]
write_substring [Writer0]
write_substring [Writer]
write_when_ready [Writer0]
write_without_pushback [Thread_safe_pipe]
write_without_pushback' [Thread_safe_pipe]
write_without_pushback' and write_without_pushback transfer the element(s) into the pipe and return immediately.
writef [Writer0]
writef [Writer]
writers_to_flush_at_shutdown [Writer0]