Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallStack ¶
func (*CallStack) Run ¶
Run executes the callback functions in the CallStack in reverse order. If abortOnError is true and any of the callback functions return an error, the execution stops and returns that error. If abortOnError is false, all callback functions are executed, regardless of errors. The CallStack is locked while executing the callbacks to ensure thread safety. The calling flag is set to 1 during the execution and reset to 0 after execution. If the CallStack is empty, Run returns nil. Returns an error if abortOnError is true and any callback function returns an error; otherwise, returns nil.
Click to show internal directories.
Click to hide internal directories.