Documentation
¶
Overview ¶
Package completion owns the bounded completion window of an admitted effect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lifetime ¶
type Lifetime struct {
// contains filtered or unexported fields
}
Lifetime keeps an admitted exchange alive for its caller's normal lifetime, then grants a bounded completion grace after the first cancellation. Copies share ownership of the context, cancellation callbacks and grace timer.
func New ¶
New preserves parent's values and observes its cancellation plus any extra owner lifetimes. No timer runs while every observed lifetime remains live. A caller deadline starts the grace when that deadline actually expires.
Click to show internal directories.
Click to hide internal directories.