Discover Packages
go.temporal.io/server
common
finalizer
package
Version:
v1.26.2-122.1
Opens a new window with list of versions in this module.
Published: Oct 22, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
FinalizerAlreadyDoneErr = errors .New ("finalizer already finalized")
FinalizerUnknownIdErr = errors .New ("finalizer callback not found")
FinalizerDuplicateIdErr = errors .New ("finalizer callback already registered")
)
type Finalizer struct {
}
Deregister removes a callback from the finalizer.
Returns an error if the ID is not found, or when the finalizer is/was already running.
Register adds a callback to the finalizer.
Returns an error if the ID is already registered, or when the finalizer is/was already running.
Run executes all registered callback functions within the given timeout (zero timeout skips execution).
It can only be invoked once; calling it again has no effect.
Returns the number of completed callbacks.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.