(>>=) [Async.Std] | >>= is used to chain asynchronous functions together.
|
(>>|) [Async.Std] | >>| is similar to >>= , but it is used for non-asynchronous functions.
|
A | |
after [Async.Std] |
a deferred that becomes determined after the given amount of time
|
all [Async.Std.Deferred] | all ts returns a deferred that becomes determined when every t in ts is
determined.
|
any [Async.Std.Deferred] | any ts returns a deferred that is fulfilled when any of the underlying
deferreds is fulfilled
|
B | |
bind [Async.Std.Deferred] |
longhand for (>>=)
|
both [Async.Std.Deferred] | both t1 t2 becomes determined after both t1 and t2 become determined.
|
C | |
connect [Async.Std.Tcp] |
Create a connection to the given address.
|
create [Async.Std.Pipe] |
Creates a new pipe, and returns the reader and writer ends.
|
create [Async.Std.Ivar] |
Create a new unfilled
Ivar.t
|
D | |
don't_wait_for [Async.Std] |
a convenience function for ignoring a deferred value
|
E | |
every [Async.Std] | every t f schedules f to be executed every t seconds.
|
F | |
file_contents [Async.Std.Reader] | file_contents filename returns the string with the full contents of the
file
|
file_lines [Async.Std.Reader] | file_lines filename returns a list of the lines in the named file.
|
fill [Async.Std.Ivar] |
Fill the given
Ivar.t .
|
fill_if_empty [Async.Std.Ivar] |
Fill the given
Ivar.t .
|
filter [Async.Std.Deferred.List] |
filter a list using an asynchronous predicate
|
find [Async.Std.Deferred.List] |
find the first element of a list satisfying an asynchronous predicate.
|
fold [Async.Std.Deferred.List] |
fold an asynchronous function over a list
|
I | |
is_empty [Async.Std.Ivar] |
Return true if the
Ivar.t is empty.
|
is_full [Async.Std.Ivar] |
Return true if the
Ivar.t is full.
|
iter [Async.Std.Deferred.List] |
iterate an asynchronous unit-valued function over a list;
iter l f
becomes determined only after all calls to f complete.
|
M | |
map [Async.Std.Deferred.List] |
map an asynchronous function over a list;
map l f becomes determined
when all calls to f complete.
|
N | |
never [Async.Std] |
a deferred that is never determined
|
P | |
printf [Async.Std] |
This function is an Async-friendly version of
Printf.printf ,
which is very useful for debugging.
|
R | |
read [Async.Std.Pipe] |
Reads data from the reader end of the pipe.
|
read [Async.Std.Ivar] | read iv returns the Deferred.t associated with iv .
|
read_line [Async.Std.Reader] |
reads a single line from the given input stream.
|
return [Async.Std] | return is used to create a Deferred.t that is immediately determined
with the provided value.
|
S | |
shutdown [Async.Std.Socket] |
Close one or both ends of a socket
|
T | |
to_host_and_port [Async.Std.Tcp] |
Interprets a string and int as a network host and port that can be
connected to.
|
try_with [Async.Std] | try_with f runs the asynchronous function f , and returns Core.Std.Ok x if
f () returns x .
|
W | |
with_timeout [Async.Std] | with_timeout t x will become determined with `Result v if x becomes
determined with v within the timespan t .
|
write [Async.Std.Pipe] |
Writes data into the writer end of a pipe.
|
write_line [Async.Std.Writer] |
Writes a line of text to the given output stream.
|