A cleanup function is a callback invoked when a cleanup context is ended or reset. It receives a result that indicates whether the context ended itself with a return value or error, or was canceled/reset by its creator.
A cleanup function is a callback invoked when a cleanup context is ended or reset. It receives a result that indicates whether the context ended itself with a return value or error, or was canceled/reset by its creator.