IO.Sval return : 'a -> 'a tval async : (unit -> unit t) -> unitStart one owned worker. Its failure must remain observable by catch and it must remain alive independently of the constructing callback.
val create_lock : unit -> lockval with_lock : lock -> (unit -> 'a) -> 'aExecute a short synchronous critical section and release the lock after normal return or exception. The callback performs no effects.
val create_notifier : unit -> notifierval notify : notifier -> unitval dispose : notifier -> unitA thread-safe scheduler wakeup. notify resolves current waiters and may coalesce repeated notifications. dispose resolves current and future waits and releases runtime resources.
Write from the requested byte slice. Success returns a count in 0..length; the portable state machine resumes partial writes and rejects zero progress. The implementation must not retain the string after the returned effect settles; delivery may reuse its private backing storage for a later write.
Complete runtime buffering only. This need not provide fsync or crash durability.
val pp_error : Stdlib.Format.formatter -> error -> unit