/usr/share/doc/liblwt-ocaml-dev/api/type_Lwt_stream.html is in liblwt-ocaml-doc 2.4.3-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | <html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Lwt_condition" rel="Chapter" href="Lwt_condition.html">
<link title="Lwt_list" rel="Chapter" href="Lwt_list.html">
<link title="Lwt" rel="Chapter" href="Lwt.html">
<link title="Lwt_mutex" rel="Chapter" href="Lwt_mutex.html">
<link title="Lwt_mvar" rel="Chapter" href="Lwt_mvar.html">
<link title="Lwt_pool" rel="Chapter" href="Lwt_pool.html">
<link title="Lwt_sequence" rel="Chapter" href="Lwt_sequence.html">
<link title="Lwt_stream" rel="Chapter" href="Lwt_stream.html">
<link title="Lwt_switch" rel="Chapter" href="Lwt_switch.html">
<link title="Lwt_util" rel="Chapter" href="Lwt_util.html">
<link title="Lwt_pqueue" rel="Chapter" href="Lwt_pqueue.html">
<link title="Lwt_lib" rel="Chapter" href="Lwt_lib.html">
<link title="Lwt_glib" rel="Chapter" href="Lwt_glib.html">
<link title="Lwt_preemptive" rel="Chapter" href="Lwt_preemptive.html">
<link title="Lwt_event" rel="Chapter" href="Lwt_event.html">
<link title="Lwt_signal" rel="Chapter" href="Lwt_signal.html">
<link title="Lwt_react" rel="Chapter" href="Lwt_react.html">
<link title="Lwt_ssl" rel="Chapter" href="Lwt_ssl.html">
<link title="Lwt_text" rel="Chapter" href="Lwt_text.html">
<link title="Lwt_term" rel="Chapter" href="Lwt_term.html">
<link title="Lwt_read_line" rel="Chapter" href="Lwt_read_line.html">
<link title="Lwt_top" rel="Chapter" href="Lwt_top.html">
<link title="Lwt_chan" rel="Chapter" href="Lwt_chan.html">
<link title="Lwt_daemon" rel="Chapter" href="Lwt_daemon.html">
<link title="Lwt_gc" rel="Chapter" href="Lwt_gc.html">
<link title="Lwt_io" rel="Chapter" href="Lwt_io.html">
<link title="Lwt_log" rel="Chapter" href="Lwt_log.html">
<link title="Lwt_main" rel="Chapter" href="Lwt_main.html">
<link title="Lwt_process" rel="Chapter" href="Lwt_process.html">
<link title="Lwt_throttle" rel="Chapter" href="Lwt_throttle.html">
<link title="Lwt_timeout" rel="Chapter" href="Lwt_timeout.html">
<link title="Lwt_unix" rel="Chapter" href="Lwt_unix.html">
<link title="Lwt_sys" rel="Chapter" href="Lwt_sys.html">
<link title="Lwt_engine" rel="Chapter" href="Lwt_engine.html">
<link title="Lwt_bytes" rel="Chapter" href="Lwt_bytes.html">
<link title="Pa_lwt" rel="Chapter" href="Pa_lwt.html">
<link title="Pa_lwt_log" rel="Chapter" href="Pa_lwt_log.html"><title>Lwt_stream</title>
</head>
<body>
<code class="code"><span class="keyword">sig</span><br>
<span class="keyword">type</span> <span class="keywordsign">'</span>a t<br>
<span class="keyword">val</span> from : (unit <span class="keywordsign">-></span> <span class="keywordsign">'</span>a option <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> from_direct : (unit <span class="keywordsign">-></span> <span class="keywordsign">'</span>a option) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">exception</span> <span class="constructor">Closed</span><br>
<span class="keyword">val</span> create : unit <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t * (<span class="keywordsign">'</span>a option <span class="keywordsign">-></span> unit)<br>
<span class="keyword">val</span> create_with_reference :<br>
unit <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t * (<span class="keywordsign">'</span>a option <span class="keywordsign">-></span> unit) * (<span class="keywordsign">'</span>b <span class="keywordsign">-></span> unit)<br>
<span class="keyword">exception</span> <span class="constructor">Full</span><br>
<span class="keyword">class</span> <span class="keyword">type</span> [<span class="keywordsign">'</span>a] bounded_push =<br>
<span class="keyword">object</span><br>
<span class="keyword">method</span> blocked : bool<br>
<span class="keyword">method</span> close : unit<br>
<span class="keyword">method</span> closed : bool<br>
<span class="keyword">method</span> count : int<br>
<span class="keyword">method</span> push : <span class="keywordsign">'</span>a <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">method</span> resize : int <span class="keywordsign">-></span> unit<br>
<span class="keyword">method</span> set_reference : <span class="keywordsign">'</span>a0 <span class="keywordsign">-></span> unit<br>
<span class="keyword">method</span> size : int<br>
<span class="keyword">end</span><br>
<span class="keyword">val</span> create_bounded : int <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t * <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.bounded_push<br>
<span class="keyword">val</span> of_list : <span class="keywordsign">'</span>a list <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> of_array : <span class="keywordsign">'</span>a array <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> of_string : string <span class="keywordsign">-></span> char <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> clone : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> to_list : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a list <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> to_string : char <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> string <span class="constructor">Lwt</span>.t<br>
<span class="keyword">exception</span> <span class="constructor">Empty</span><br>
<span class="keyword">val</span> peek : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a option <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> npeek : int <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a list <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> get : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a option <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> nget : int <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a list <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> get_while : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a list <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> get_while_s : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a list <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> next : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> last_new : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> junk : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> njunk : int <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> junk_while : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> junk_while_s : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> junk_old : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> get_available : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a list<br>
<span class="keyword">val</span> get_available_up_to : int <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a list<br>
<span class="keyword">val</span> is_empty : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> bool <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> on_terminate : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> (unit <span class="keywordsign">-></span> unit) <span class="keywordsign">-></span> unit<br>
<span class="keyword">val</span> choose : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t list <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> map : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> map_s : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> filter : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> filter_s : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> filter_map : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b option) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> filter_map_s :<br>
(<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b option <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> map_list : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b list) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> map_list_s :<br>
(<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b list <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> fold : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="keywordsign">-></span> <span class="keywordsign">'</span>b) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> fold_s : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> iter : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> unit) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> iter_p : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> iter_s : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> unit <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> find : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a option <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> find_s : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> bool <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a option <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> find_map : (<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b option) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b option <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> find_map_s :<br>
(<span class="keywordsign">'</span>a <span class="keywordsign">-></span> <span class="keywordsign">'</span>b option <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b option <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> combine : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> (<span class="keywordsign">'</span>a * <span class="keywordsign">'</span>b) <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> append : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> concat : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> flatten : <span class="keywordsign">'</span>a list <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">type</span> <span class="keywordsign">'</span>a result = <span class="constructor">Value</span> <span class="keyword">of</span> <span class="keywordsign">'</span>a <span class="keywordsign">|</span> <span class="constructor">Error</span> <span class="keyword">of</span> exn<br>
<span class="keyword">val</span> map_exn : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.result <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">val</span> parse : <span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> (<span class="keywordsign">'</span>a <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt</span>.t) <span class="keywordsign">-></span> <span class="keywordsign">'</span>b <span class="constructor">Lwt</span>.t<br>
<span class="keyword">val</span> hexdump : char <span class="constructor">Lwt_stream</span>.t <span class="keywordsign">-></span> string <span class="constructor">Lwt_stream</span>.t<br>
<span class="keyword">end</span></code></body></html>
|