RequestSeal.Custody.Context (RequestSeal v0.2.0)

Copy Markdown View Source

Absolute monotonic millisecond deadline and original caller PID.

Custodians propagate deadline to all external work and honor caller death as cancellation. The custody boundary also terminates its worker on either event. Closing a client connection does not undo a signature already produced by a peer.

Summary

Functions

Remaining operation milliseconds; zero means the deadline has expired.

Types

t()

@type t() :: %RequestSeal.Custody.Context{deadline: integer(), owner: pid()}

Functions

remaining(context)

@spec remaining(t()) :: non_neg_integer()

Remaining operation milliseconds; zero means the deadline has expired.