Note: This lodule is deprecated. Use [root:Lwt_list] and [root:Lwt_pool] instead.
iter f l
start a thread for each element in l
. The threads
are started according to the list order, but then can run
concurrently. It terminates when all the threads are
terminated, if all threads are successful. It fails if any of
the threads fail.
map_with_waiting_action f wa l
apply f
to each element
in l
and collect the results of the threads thus created.
The threads are started according to the list order, but
then can run concurrently. The difference with map f l
is
that function wa will be called on the element that the
function is waiting for its termination.