# UEFN: Verse: Epic tutorial uses 'race' but results in error (search\_and\_destroy example)

**URL:** <https://forums.unrealengine.com/t/uefn-verse-epic-tutorial-uses-race-but-results-in-error-search-and-destroy-example/1165792>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, Scripting, question, fortnite\
**Created:** [May 14, 2023, 9:37pm UTC](https://forums.unrealengine.com/t/uefn-verse-epic-tutorial-uses-race-but-results-in-error-search-and-destroy-example/1165792 "2023-05-14T21:37:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenjaminYde](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benjaminyde/32/1016928_2.png) [@BenjaminYde](https://forums.unrealengine.com/u/BenjaminYde)\
**Post date:** [May 14, 2023, 9:37pm UTC](https://forums.unrealengine.com/t/uefn-verse-epic-tutorial-uses-race-but-results-in-error-search-and-destroy-example/1165792/1 "2023-05-14T21:37:22Z")

</div>

Im following the UEFN tutorial on how to make the search\_and\_destroy example.  
When I get to the part of using the `race` concepts I keep getting errors. I don’t know what I am doing wrong?

Im using UEFN 5.1.1

Error 1:  
All the top level expressions in a `'race' macro` must be async (such as a coroutine call) and not immediate.

Error 2:

Expected async expression(s) (such as a coroutine or concurrency primitive) and only found immediate expression(s) (such as an immediate function call).

```auto
    OnBegin<override>()<suspends>:void=
        # The race expression is used to run a block of two or more async expressions concurrently (simultaneously). 
        # When the fastest expression completes, it "wins the race".
        # https://www.fortnite.com/en-US/creative/docs/uefn/race-in-verse
        race:
            block:
                Print("Hello, world 1!")
            block:
                Print("Hello, world 2!")

```

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/e/fdeea5be5ba60d0c0441f517ec1592431c026d50.png)

Here is the tutorial: [Verse Detonation Template | Epic Developer Community (epicgames.com)](https://dev.epicgames.com/documentation/en-us/uefn/verse-detonation-template-in-unreal-editor-for-fortnite)

---

<div class="post-metadata">

**Author:** ![PiEqualsThree3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PiEqualsThree3](https://forums.unrealengine.com/u/PiEqualsThree3)\
**Post date:** [May 14, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/uefn-verse-epic-tutorial-uses-race-but-results-in-error-search-and-destroy-example/1165792/2 "2023-05-14T23:53:01Z")

</div>

The issue is that you need an asynchronous function inside the block. Asynchronous functions have the `<suspends> ` specifier. Print is not an asynchronous function, which is why you are getting an error. If you try with something like Sleep(1.0), it would work because it is an asynchronous function
