Navigation
API > API/Plugins > API/Plugins/CaptureUtils > API/Plugins/CaptureUtils/FCaptureEventSourceWithLimiter
Description
When PublishIfThresholdReached() is called the publishing will mostly only occur if the time since last publish is greater than the threshold (although this isn't guaranteed and multiple events can still be published in rare cases). The unpublished events are simply dropped (i.e. not buffered so the client has to make sure that won't cause problems to the subscribers. The client can also force publish an event which will do the publishing no matter what the current time is and reset the time measurement. This is handy for publishing events whose dropping will break continuity for the client or for publishing the last event in a line of optional events to trigger the final update.
| Name | PublishIfThresholdReached |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/CaptureManager/CaptureManagerCore/Source/CaptureUtils/Public/Async/EventSourceUtils.h |
| Include Path | #include "Async/EventSourceUtils.h" |
template<typename EventType, typename ... EventArgs>
bool PublishIfThresholdReached
(
bool bInForcePublish,
EventArgs &&... InEventArgs
)