package uwt
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
libuv bindings
Install
dune-project
Dependency
Authors
Maintainers
Sources
uwt-0.3.0.2.tar.gz
sha256=1c4a49f4cffc017fff8a47563653f5a9ed4007bbd6705fd9737a211ff3d864e2
md5=25fbbf9b39c072f9667e6fdfba108556
doc/README.html
Uwt
Uwt provides OCaml bindings for libuv - on top of lwt.
- Requests are translated to lwt-threads.
- Callbacks that are called continually are most of the time not translated to the usual lwt semantic.
- naming conventions mirror the conventions of libuv, so you can easily consult the official libuv manual. Only the differences are explained inside
uwt.mli - Uwt is not compatible with
lwt.unix. It's not a furtherLwt_enginein addition toselectandlibev. However, the findlib packageuwt.extprovides alternatives to the higher level modules oflwt.unixwith a nearly identic interface (Uwt_io, Uwt_process, Uwt_log). You can also open the moduleUwt_compat(packageuwt.compat) that provides aliases with module names as found in lwt (e.g.Lwt_maininstead ofUwt.Main). This is necessary, if you want to use the camlp4 syntax extension of lwt. - Uwt is not thread safe. All uwt functions should be called from your main thread.
Installation
Quick install guide
$ opam install uwt
# or for the latest development version
$ opam pin add uwt --dev-repoManual install
Dependencies:
- OCaml 4.02.1 or later
- lwt 2.6.0 or later
- libuv 1.8 or later
Build dependencies:
- pkg-config / pkgconf
- findlib
- omake
- cppo
- ppx_deriving (test only)
- ppx_import (test only)
- ounit (test only)
- autoconf (repo pinning only)
$ omake all
$ omake installlibuv will be compiled locally, if is not already installed on your system. You can also explicity enforce one option:
$ omake all BUILD_LIBUV=true
# or
$ omake all BUILD_LIBUV=false
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page