az_context az_context_application
The application root az_context instances.
AZ_NODISCARD az_result az_context_get_value(az_context const *context, void const *key, void const **out_value)
Walks up this az_context node's parents until it find a node whose key matches the specified key and ...
void az_context_cancel(az_context *ref_context)
Cancels the specified az_context node; this cancels all the child nodes as well.
AZ_NODISCARD int64_t az_context_get_expiration(az_context const *context)
Returns the soonest expiration time of this az_context node or any of its parent nodes.
AZ_NODISCARD az_context az_context_create_with_value(az_context const *parent, void const *key, void const *value)
Creates a new key/value az_context node that is a child of the specified parent.
AZ_NODISCARD bool az_context_has_expired(az_context const *context, int64_t current_time)
Returns true if this az_context node or any of its parent nodes' expiration is before the current_tim...
A context is a node within a tree that represents expiration times and key/value pairs.
Definition: az_context.h:37
AZ_NODISCARD az_context az_context_create_with_expiration(az_context const *parent, int64_t expiration)
Creates a new expiring az_context node that is a child of the specified parent.