Documentation
¶
Index ¶
Constants ¶
View Source
const ReportingPluginTimeoutWarningGracePeriod = 100 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
func CallPlugin ¶
func CallPluginFromBackground ¶
func CallPluginFromBackground[T any]( ctx context.Context, logger loghelper.LoggerWithContext, logFields commontypes.LogFields, name string, recommendedMaxDuration time.Duration, f func(context.Context) (T, error), ) (T, bool)
Unlike CallPlugin, CallPluginFromBackground only uses the "recommendedMaxDuration" to warn if the call takes longer than recommended, but does not use it for context expiration purposes. Context expiration is solely controlled by the passed ctx.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.