package uwt
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_exn : t -> Unix.file_descr
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>