package async_unix
Monadic concurrency library
Install
Dune Dependency
Authors
Maintainers
Sources
async_unix-v0.16.0.tar.gz
sha256=a6a86202acea433b5c739ac20190a9a364da9d9eb7ebd402f517b8c58983839b
doc/src/async_unix/config.ml.html
Source file config.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
open! Core module Unix = Core_unix include Async_kernel.Async_kernel_config let file_descr_watcher = match file_descr_watcher with | (Epoll | Select) as x -> x | Epoll_if_timerfd -> (* Without timerfd, epoll_wait(2) timeouts would have only millisecond precision. *) if Result.is_ok Linux_ext.Timerfd.create then Epoll else Select ;; let max_num_open_file_descrs = if not (Max_num_open_file_descrs.equal max_num_open_file_descrs Max_num_open_file_descrs.default) then max_num_open_file_descrs else ( match file_descr_watcher with | Select -> (* The maximum numeric value for a file descriptor watchable by [select] is limited by [FD_SETSIZE], which happens to be 1024 on Linux. *) Max_num_open_file_descrs.create_exn 1024 | Epoll | Epoll_if_timerfd -> Int.min Max_num_open_file_descrs.(default |> raw) (match Unix.RLimit.(get num_file_descriptors).max with | Infinity -> Int.max_value | Limit int64 -> int64 |> Int64.to_int_exn) |> Max_num_open_file_descrs.create_exn) ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>