<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <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 rel="previous" href="Async_print.html"> <link rel="next" href="Epoll_file_descr_watcher.html"> <link rel="Up" 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 modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Async_print" rel="Chapter" href="Async_print.html"> <link title="Async_sys" rel="Chapter" href="Async_sys.html"> <link title="Epoll_file_descr_watcher" rel="Chapter" href="Epoll_file_descr_watcher.html"> <link title="Fd" rel="Chapter" href="Fd.html"> <link title="Fd_by_descr" rel="Chapter" href="Fd_by_descr.html"> <link title="File_descr_watcher_intf" rel="Chapter" href="File_descr_watcher_intf.html"> <link title="Import" rel="Chapter" href="Import.html"> <link title="Interruptor" rel="Chapter" href="Interruptor.html"> <link title="In_thread" rel="Chapter" href="In_thread.html"> <link title="Io_stats" rel="Chapter" href="Io_stats.html"> <link title="Process" rel="Chapter" href="Process.html"> <link title="Raw_fd" rel="Chapter" href="Raw_fd.html"> <link title="Raw_scheduler" rel="Chapter" href="Raw_scheduler.html"> <link title="Raw_signal_manager" rel="Chapter" href="Raw_signal_manager.html"> <link title="Reader" rel="Chapter" href="Reader.html"> <link title="Read_write" rel="Chapter" href="Read_write.html"> <link title="Scheduler" rel="Chapter" href="Scheduler.html"> <link title="Select_file_descr_watcher" rel="Chapter" href="Select_file_descr_watcher.html"> <link title="Shutdown" rel="Chapter" href="Shutdown.html"> <link title="Signal" rel="Chapter" href="Signal.html"> <link title="Signal_manager" rel="Chapter" href="Signal_manager.html"> <link title="Std" rel="Chapter" href="Std.html"> <link title="Syscall" rel="Chapter" href="Syscall.html"> <link title="Thread_pool" rel="Chapter" href="Thread_pool.html"> <link title="Thread_safe" rel="Chapter" href="Thread_safe.html"> <link title="Thread_safe_pipe" rel="Chapter" href="Thread_safe_pipe.html"> <link title="Unix_syscalls" rel="Chapter" href="Unix_syscalls.html"> <link title="Writer" rel="Chapter" href="Writer.html"><title>Async_sys</title> </head> <body> <div class="navbar"><a class="pre" href="Async_print.html" title="Async_print">Previous</a> <a class="up" href="index.html" title="Index">Up</a> <a class="post" href="Epoll_file_descr_watcher.html" title="Epoll_file_descr_watcher">Next</a> </div> <h1>Module <a href="type_Async_sys.html">Async_sys</a></h1> <pre><span class="keyword">module</span> Async_sys: <code class="code">sig</code> <a href="Async_sys.html">..</a> <code class="code">end</code></pre><div class="info module top"> This module overrides everything in the <code class="code">Sys</code> module that might block. Functions do the same thing as their counterparts in <code class="code">Sys</code>, but instead return deferreds. For a description of the semantics of their semantics see the documentation for the <code class="code">Sys</code> module.<br> </div> <hr width="100%"> <pre><span id="VALargv"><span class="keyword">val</span> argv</span> : <code class="type">string array</code></pre> <pre><span id="VALexecutable_name"><span class="keyword">val</span> executable_name</span> : <code class="type">string</code></pre> <pre><span id="VALfile_exists"><span class="keyword">val</span> file_exists</span> : <code class="type">string -> [ `No | `Unknown | `Yes ] Import.Deferred.t</code></pre> <pre><span id="VALfile_exists_exn"><span class="keyword">val</span> file_exists_exn</span> : <code class="type">string -> bool Import.Deferred.t</code></pre> <pre><span id="VALwhen_file_exists"><span class="keyword">val</span> when_file_exists</span> : <code class="type">?poll_delay:Core.Std.Time.Span.t -> string -> unit Import.Deferred.t</code></pre><div class="info "> <code class="code">when_file_exists ?poll_delay file</code> returns a deferred that becomes determined when <code class="code">file</code> exists. The default poll delay is 0.5 seconds. It raises an exception if it can not check whether the file is there, in the same cases <code class="code">file_exists</code> returns <code class="code">`Unknown</code>.<br> </div> <pre><span id="VALis_directory"><span class="keyword">val</span> is_directory</span> : <code class="type">string -> [ `No | `Unknown | `Yes ] Import.Deferred.t</code></pre> <pre><span id="VALis_file"><span class="keyword">val</span> is_file</span> : <code class="type">string -> [ `No | `Unknown | `Yes ] Import.Deferred.t</code></pre> <pre><span id="VALremove"><span class="keyword">val</span> remove</span> : <code class="type">string -> unit Import.Deferred.t</code></pre> <pre><span id="VALrename"><span class="keyword">val</span> rename</span> : <code class="type">string -> string -> unit Import.Deferred.t</code></pre> <pre><span id="VALcommand"><span class="keyword">val</span> command</span> : <code class="type">string -> int Import.Deferred.t</code></pre> <pre><span id="VALchdir"><span class="keyword">val</span> chdir</span> : <code class="type">string -> unit Import.Deferred.t</code></pre> <pre><span id="VALgetcwd"><span class="keyword">val</span> getcwd</span> : <code class="type">unit -> string Import.Deferred.t</code></pre> <pre><span id="VALreaddir"><span class="keyword">val</span> readdir</span> : <code class="type">string -> string array Import.Deferred.t</code></pre> <pre><span id="VALinteractive"><span class="keyword">val</span> interactive</span> : <code class="type">bool Pervasives.ref</code></pre> <pre><span id="VALos_type"><span class="keyword">val</span> os_type</span> : <code class="type">string</code></pre> <pre><span id="VALword_size"><span class="keyword">val</span> word_size</span> : <code class="type">int</code></pre></body></html>