Index of values


(<&>) [Lwt.​Infix]

t <&> t' is the same as join [t; t']

(<&>) [Lwt]

t <&> t' is the same as join [t; t']

(<?>) [Lwt.​Infix]

t <?> t' is the same as choose [t; t']

(<?>) [Lwt]

t <?> t' is the same as choose [t; t']

Error a_api: "(>>=)>>~[<<a_api|moduleLwt_result" is not a valid module name=) >> [Lwt.​Infix]

t >>= f is an alternative notation for bind t f.

(>>=)=) >> [Lwt]

t >>= f is an alternative notation for bind t f.

(>|=) [Lwt_result.​Infix]
(>|=) [Lwt.​Infix]

m >|= f is map f m

(>|=) [Lwt]

m >|= f is map f m


A
abort [Lwt_unix]

abort fd exn makes all current and further uses of the file descriptor fail with the given exception.

abort [Lwt_io]

abort ch abort current operations and close the channel immediately.

abort [Lwt_ssl]
abort_jobs [Lwt_unix]

abort_jobs exn make all pending jobs to fail with exn.

accept [Lwt_unix]

Wrapper for Unix.accept

accept_n [Lwt_unix]

accept_n fd count accepts up to count connections at one time.

access [Lwt_unix]

Wrapper for Unix.access

accum_s [Lwt_react.​S]
accum_s [Lwt_react.​E]
add [Lwt_pqueue.​S]

add e q evaluates to a new priority queue, which contains all the elements of q, and the additional element e.

add_hook [Lwt_switch]

add_hook switch f registers f so it will be called when Lwt_switch.​turn_off is invoked.

add_hook_or_exec [Lwt_switch]

add_hook_or_exec switch f is the same as Lwt_switch.​add_hook except that if the switch is already off, f is called immediately.

add_l [Lwt_sequence]

add_l x s adds x to the left of the sequence s

add_r [Lwt_sequence]

add_l x s adds x to the right of the sequence s

add_rule [Lwt_log_core]

add_rule pattern level adds a rule for sections logging levels.

add_task_l [Lwt]

add_task_l seq creates a sleeping thread, adds its wakener to the left of seq and returns its waiter.

add_task_r [Lwt]

add_task_r seq creates a sleeping thread, adds its wakener to the right of seq and returns its waiter.

app_p [Lwt_react.​E]
app_s [Lwt_react.​S]
app_s [Lwt_react.​E]
append [Lwt_stream]

append s1 s2 returns a stream which returns all elements of s1, then all elements of s2

append_bigarray [Lwt_unix.​IO_vectors]

append_bigarray vs buffer offset length appends a slice of the Bigarray buffer buffer beginning at offset and with length length to the I/O vector sequence vs.

append_bytes [Lwt_unix.​IO_vectors]

append_bytes vs buffer offset length appends a slice of the bytes buffer buffer beginning at offset and with length length to the I/O vector sequence vs.

append_rule [Lwt_log_core]

append_rule pattern level adds the given rule after all other rules.

async [Lwt]

async f starts a thread without waiting for the result.

async_exception_hook [Lwt]

Function called when a asynchronous exception is thrown.

async_method [Lwt_unix]

async_method () returns the async method used in the current thread.

async_method_key [Lwt_unix]

The key for storing the local async method.

at_exit [Lwt_main]

at_exit hook adds hook at the left of exit_hooks

atomic [Lwt_io]

atomic f transforms a sequence of io operations into one single atomic io operation.

auto_yield [Lwt_unix]

auto_yield timeout returns a function f that will yield every timeout seconds.


B
bind [Lwt_unix]

Binds an address to the given socket.

bind [Lwt_react.​S]

bind ?eq s f is initially f x where x is the current value of s.

bind [Lwt_result]
bind [Lwt]

bind t f is a thread which first waits for the thread t to terminate and then, if the thread succeeds, behaves as the application of function f to the return value of t.

bind_1 [Lwt_unix.​Versioned]

Old version of Lwt_unix.​bind.

bind_2 [Lwt_unix.​Versioned]

Since Lwt 3.0.0, this is just an alias for Lwt_unix.​bind.

bind_lwt [Lwt_result]
bind_lwt_err [Lwt_result]
bind_result [Lwt_result]
bind_s [Lwt_react.​S]

Same as Lwt_react.​S.​bind except that f returns a thread.

blit [Lwt_bytes]

blit buf1 ofs1 buf2 ofs2 len copies len bytes from buf1 starting at offset ofs1 to buf2 starting at offset ofs2.

blit_from_bytes [Lwt_bytes]

Same as Lwt_bytes.​blit but the first buffer is a string instead of a byte array.

blit_to_bytes [Lwt_bytes]

Same as Lwt_bytes.​blit but the second buffer is a string instead of a byte array.

block [Lwt_io]

block ch size f pass to f the internal buffer and an offset.

blocking [Lwt_unix]

blocking fd indicates whether Lwt is internally using blocking or non-blocking I/O with fd.

broadcast [Lwt_log_core]

broadcast loggers is a logger which send messages to all the given loggers.

broadcast [Lwt_condition]

broadcast condvar value notifies all waiting threads.

broadcast_exn [Lwt_condition]

broadcast_exn condvar exn fails all waiting threads with exception exn.

buffer_size [Lwt_io]

Returns the size of the internal buffer.

buffered [Lwt_io]

buffered oc returns the number of bytes in the buffer

byte_order [Lwt_sys]

The byte order used by the computer running the program.


C
call_notification [Lwt_unix]

Call the handler associated to the given notification.

cancel [Lwt]

cancel t cancels the threads t.

cancel_jobs [Lwt_unix]

cancel_jobs () is the same as abort_jobs Lwt.Canceled.

catch [Lwt_result]

catch x behaves like return y if x evaluates to y, and like fail e if x raises e

catch [Lwt]

catch t f is a thread that behaves as the thread t () if this thread succeeds.

change [Lwt_timeout]

changes the duration of a timeout.

channel [Lwt_log]

channel ?template ~close_mode ~channel () creates a logger from a channel.

chars_of_file [Lwt_io]

chars_of_file name returns a stream of all characters of the file with name name.

chars_to_file [Lwt_io]

chars_to_file name chars writes all characters of chars to name

chdir [Lwt_unix]

Wrapper for Unix.chdir

check [Lwt_switch]

check switch does nothing if switch is None or contains an switch that is currently on, and raises Lwt_switch.​Off otherwise.

check_descriptor [Lwt_unix]

check_descriptor fd raise an exception if fd is not in the state Open

chmod [Lwt_unix]

Wrapper for Unix.chmod

choose [Lwt]

choose l behaves as the first thread in l to terminate.

choose [Lwt_stream]

choose l creates an stream from a list of streams.

chown [Lwt_unix]

Wrapper for Unix.chown

chroot [Lwt_unix]

Wrapper for Unix.chroot

clear_close_on_exec [Lwt_unix]

Wrapper for Unix.clear_close_on_exec

clone [Lwt_stream]

clone st clone the given stream.

close [Lwt_unix]

Close a file descriptor.

close [Lwt_io]

close ch closes the given channel.

close [Lwt_ssl]
close [Lwt_log_core]

Close the given logger

close_in [Lwt_chan]
close_out [Lwt_chan]
closed [Lwt_stream]

closed st returns a thread that will sleep until the stream has been closed.

closedir [Lwt_unix]

Closes a directory handle.

combine [Lwt_stream]

combine s1 s2 combines two streams.

compare [Lwt_pqueue.​OrderedType]
concat [Lwt_stream]

concat st returns the concatenation of all streams of st.

connect [Lwt_unix]

Wrapper for Unix.connect

copy [Lwt_bytes]

copy buffer creates a copy of the given byte array.

create [Lwt_unix.​IO_vectors]

Creates an empty I/O vector sequence.

create [Lwt_bytes]

Creates a new byte array of the given size.

create [Lwt_throttle.​S]
create [Lwt_timeout]

create n f defines a new timeout with n seconds duration.

create [Lwt_pool]

create n ?check ?validate f creates a new pool with at most n elements.

create [Lwt_condition]

create () creates a new condition variable.

create [Lwt_mutex]

create () creates a new mutex, which is initially unlocked

create [Lwt_switch]

create () creates a new switch.

create [Lwt_sequence]

create () creates a new empty sequence

create [Lwt_mvar]

create v creates a new mailbox variable containing value v.

create [Lwt_stream]

create () returns a new stream and a push function.

create_bounded [Lwt_stream]

create_bounded size returns a new stream and a bounded push source.

create_empty [Lwt_mvar]

create () creates a new empty mailbox variable.

create_with_reference [Lwt_stream]

create_with_reference () returns a new stream and a push function.


D
daemonize [Lwt_daemon]

Put the current running process into daemon mode.

debug [Lwt_log_core]
debug_f [Lwt_log_core]
default [Lwt_engine.​Ev_backend]
default [Lwt_log_core]

The default logger.

default_async_method [Lwt_unix]

Returns the default async method.

default_buffer_size [Lwt_io]

Return the default size for buffers.

delay [Lwt_react.​E]