package luv
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=a81268ceb85b8cffbeb5e5a9fdb4c6e724266ce0dee1f39afc4bb4a17703d749
md5=5d2335fb57ffe228151cc492888ca2dc
doc/luv/Luv/Loop/index.html
Module Luv.Loop
Source
Event loops.
See Event loops in the user guide and uv_loop_t
— Event loop in libuv.
Binds uv_loop_t
.
Binds uv_run_mode
.
Runs an event loop.
Binds uv_run
.
If ?loop
is specified, the given loop will be run. If not, this function will run Luv.Loop.default
, which is suitable for most cases.
See uv_run
for the meaning of the constants that can be specified with ?mode
. The default value is `DEFAULT
.
Again, see uv_run
for information on the return value. Zero from uv_run
corresponds to false
from Luv.Loop.run
, and non-zero corresponds to true
.
This function typically should not be called by a library based on Luv. Rather, it should be called by applications.
val default : unit -> t
Returns the default event loop.
Binds uv_default_loop
.
Allocates and initializes a new event loop.
Binds uv_loop_init
.
Releases resources associated with an event loop.
Binds uv_loop_close
.
val update_time : t -> unit
Updates the cached loop timestamp.
Binds uv_update_time
.
Binds uv_loop_option
.
Sets a loop option.
Binds uv_loop_configure
.
val alive : t -> bool
Indicates whether the loop is monitoring any activity.
Binds uv_loop_alive
.
Returns the file descriptor used for I/O polling.
Binds uv_backend_fd
.
Returns the timeout used with I/O polling.
Binds uv_backend_timeout
.
Reinitializes libuv after a call to fork(2)
.
Binds uv_loop_fork
.
Releases any state libuv is holding on to.
Binds uv_library_shutdown
.
Note especially the warnings in the libuv documentation of this function.