package async_unix
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Monadic concurrency library
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=814d3a9997ec1316b8b2a601b24471740641647a25002761f7df7869c3ac9e33
doc/async_unix/Async_unix/Sys/index.html
Module Async_unix.SysSource
This module overrides everything in the Core.Sys module that might block. Functions do the same thing as their counterparts in Core.Sys, but instead return deferreds. For a description of their semantics see the documentation for the Core.Sys module.
Source
val file_exists :
?follow_symlinks:bool ->
string ->
[ `Yes | `No | `Unknown ] Async_kernel.Deferred.tSource
val when_file_exists :
?follow_symlinks:bool ->
?poll_delay:Async_unix__.Import.Time.Span.t ->
string ->
unit Async_kernel.Deferred.twhen_file_exists ?poll_delay file returns a deferred that becomes determined when file 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 file_exists returns `Unknown.
Source
val when_file_changes :
?time_source:Async_kernel.Time_source.t ->
?poll_delay:Async_unix__.Import.Time.Span.t ->
string ->
(Async_unix__.Import.Time.t, exn) Core.Result.t Async_kernel.Pipe.Reader.twhen_file_changes file polls file using stat and writes file's mtime to the pipe every time it changes or there's an error. The first time in the pipe will be file's current mtime. To stop polling, close the pipe.
Source
val is_directory :
?follow_symlinks:bool ->
string ->
[ `Yes | `No | `Unknown ] Async_kernel.Deferred.tSource
val is_file :
?follow_symlinks:bool ->
string ->
[ `Yes | `No | `Unknown ] Async_kernel.Deferred.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>