Deadline
class Deadline(val timeout: Duration, timeSource: TimeSource.WithComparableMarks = TimeSource.Monotonic)
A fixed time budget that starts counting down at construction.
Time is read from the given time source, which defaults to TimeSource.Monotonic. A non-positive timeout produces a deadline that is expired from the start. All state is captured at construction, so reading the properties is safe from any coroutine.