# Source URL: https://dev.epicgames.com/documentation/fortnite/verse-code-style-guide-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/fortnite/verse-code-style-guide-in-unreal-editor-for-fortnite.md
# Section: 8.1 Don’t Decorate Functions with Async
AwaitGameEnd()<suspends>:void=
# Setup other things before awaiting game end…
GameEndEvent.Await()
OnBegin()<suspends>:void =
race:
RunGameLoop()
AwaitGameEnd()
Verse Library
verse
15 8 1 Don T Decorate Functions With Async
Demonstrates suspending execution until an event triggers and running concurrent logic with race statements.
extracted-snippets/documentation/fortnite/verse-code-style-guide-in-unreal-editor-for-fortnite/15-8-1-don-t-decorate-functions-with-async.verse