Verse Library verse

02 Known Limitations

Demonstrates profile block usage inside suspending functions and its restriction rules.

extracted-snippets/documentation/en-us/uefn/profile-in-verse/02-known-limitations.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/profile-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/profile-in-verse.md
# Section:    Known Limitations
MyAsyncFunction()<suspends>:void=
    profile: # Allowed inside <suspends> function
        MyRandomInt := GetRandomInt(10, 100) # Allowed inside profile
        Sleep(0.0) # Not allowed inside profile
Copy full snippet

Comments

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