Verse Library verse

01 Verse Language

Shows how variables assigned inside a race block are safely scoped to prevent race conditions.

extracted-snippets/documentation/en-us/uefn/31-00-release-notes-in-unreal-editor-for-fortnite/01-verse-language.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/31-00-release-notes-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/31-00-release-notes-in-unreal-editor-for-fortnite.md
# Section:    Verse Language
race:
 X := F()
 G() # some suspend code I know will lose the race
H(X) # X was possible to access here before, but not anymore.
Copy full snippet

Comments

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