Context_mtime.DeadlineDeadlines
Depends on mtime.
val k_deadline : Mtime.t Context.keyKey to access a deadline from inside the request context. This can be useful for systems concerned with timeout or cancellation of a request after a certain amount of time has passed.
val expired : Context.t -> boolHas the deadline been reached? This uses Mtime_clock.now to compare it to the stored deadline. If there is no deadline then this returns false.