Neodriver_core.DeadlineDeadlines for unified timing.
Deadlines for the Neo4j driver.
A deadline is an absolute monotonic time with an optional original timeout, providing one unified timing mechanism for connection acquisition, I/O, handshake and transactions. See deadline.ml for the implementation.
val create : float option -> tCreate a deadline from an optional timeout in seconds; None means no deadline (never expires).
val to_timeout : t -> float optionRemaining time in seconds until the deadline, or None if unset.
val expired : t -> boolWhether the deadline has already passed.
val is_set : t -> boolWhether a deadline is set (true) or not (false).
val original_timeout : t -> float optionThe original timeout used to create the deadline.
val to_string : t -> stringRender the deadline as a string.
val merge_and_timeouts : float option list -> t optionThe earliest deadline among the given timeouts; None entries are ignored.