package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Nov 6, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package consumerlife coordinates explicit consumer cancellation and native cleanup.
Session permits one consuming loop and one concurrent, idempotent shutdown.
Begin registers a cancelable consuming loop. Finish must be deferred after successful acquisition.
Shutdown cancels and waits for the loop before native cleanup. On deadline, cleanup continues and later calls can await it.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.