= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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.
- Always close the handle with
Handle.close
(orTcp.close
, etc.), notUnix.close
or any other function.
- Never pass the file descriptor to functions like
Pipe.openpipe
orPoll.start
.
val fileno : t -> Unix.file_descr uv_result
val fileno_exn : t -> Unix.file_descr