Verse Library verse

01 Error Expected At Least Two Top Level Expressions

Groups asynchronous functions into sequential blocks for controlled execution and synchronization.

extracted-snippets/documentation/en-us/fortnite/sync-in-verse/01-error-expected-at-least-two-top-level-expressions.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/sync-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/sync-in-verse.md
# Section:    Error: expected at least two top-level expressions
# sync may also have compound expressions
# with each top-level expression its own task
sync:
    block: # task 1
        # Evaluated in serial order
        AsyncFunction1a()
        AsyncFunction1b()
    block: # task 2
        AsyncFunction2a()
        AsyncFunction2b()

Comments

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