type Eio.Exn.Backend.t +=
A safe wrapper for Unix.file_descr
.
Eio resources backed by an OS file descriptor.
Extended network API with support for file descriptors.
val await_readable : Unix.file_descr -> unit
await_readable fd
blocks until fd
is readable (or has an error).
val await_writable : Unix.file_descr -> unit
await_writable fd
blocks until fd
is writable (or has an error).
val sleep : float -> unit
sleep d
sleeps for d
seconds, allowing other fibers to run. This is can be useful for debugging (e.g. to introduce delays to trigger a race condition) without having to plumb Eio.Stdenv.mono_clock
through your code. It can also be used in programs that don't care about tracking determinism.
val run_in_systhread : ?label:string -> (unit -> 'a) -> 'a
run_in_systhread fn
runs the function fn
using a pool of system threads (Thread.t
).
This pool creates a new system thread if all threads are busy, it does not wait. run_in_systhread
allows blocking calls to be made non-blocking.
pipe sw
returns a connected pair of flows src
and sink
. Data written to sink
can be read from src
. Note that, like all FDs created by Eio, they are both marked as close-on-exec by default.
Spawning child processes with extra control.
The set of resources provided to a process on a Unix-compatible system.
API for Eio backends only.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4