package luv
Binding to libuv: cross-platform asynchronous I/O
Install
Dune Dependency
Authors
Maintainers
Sources
luv-0.5.6.tar.gz
sha256=35d8092d7a7e8d00a7ab8caf79d99e2073baf1999f5b9274de4d69078ad83685
md5=fb78fd1b179f5c9585e79b5a1c5ff644
doc/luv/Luv/FS_poll/index.html
Module Luv.FS_poll
Source
Filesystem polling.
See uv_fs_poll_t
— FS Poll handle in libuv.
Binds uv_fs_poll_t
.
Note that values of this type can be passed to functions in Luv.Handle
, in addition to the functions in this module. In particular, see Luv.Handle.close
.
Allocates and initializes an FS polling handle.
Binds uv_fs_poll_init
.
The handle should be cleaned up with Luv.Handle.close
when no longer needed.
Source
val start :
?interval:int ->
t ->
string ->
((File.Stat.t * File.Stat.t, Error.t) Result.result -> unit) ->
unit
Starts the handle and polls the given path for changes.
Binds uv_fs_poll_start
.
The default value of ?interval
is 2000 (milliseconds).
See uv_fs_poll_cb
for a description of the values passed to the callback.
Stops the handle.
Binds uv_fs_poll_stop
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>