Verse Library verse

23 Linking Everything Together

Safely terminates an active event subscription to prevent memory leaks or unwanted triggers.

extracted-snippets/documentation/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite/23-linking-everything-together.verse

# Source URL: https://dev.epicgames.com/documentation/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite.md
# Section:    Linking Everything Together
# Cancel a subscription if it is valid.
CancelSubscription(Subscription:?cancelable):void =
if (SubscriptionToCancel := Subscription?):
SubscriptionToCancel.Cancel()

Comments

    Sign in to vote, comment, or suggest an edit. Sign in