package uwt

  1. Overview
  2. Docs
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.0.tar.gz
sha256=e924c3f80906c44871c62870d9472956ff043a14a4c17e886302bf47e6ca71e1
md5=f611099ba6eae6ea3f6b46a21e30effc

doc/uwt.async/Uwt/Handle_fileno/index.html

Module Uwt.Handle_fileno

The usage of fileno is unsafe and strongly discouraged. But it's sometimes necessary, if you need to interact with third parties libraries. Rules:

  • You must still keep your original handle around. Otherwise uwt will close the handle when the garbage collector removes it.
type t
val fileno : t -> Unix.file_descr uv_result
val fileno_exn : t -> Unix.file_descr