# How to rock the method in verse?v

**URL:** <https://forums.unrealengine.com/t/how-to-rock-the-method-in-verse-v/1378537>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [November 10, 2023, 4:05pm UTC](https://forums.unrealengine.com/t/how-to-rock-the-method-in-verse-v/1378537 "2023-11-10T16:05:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Messiah4213](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/messiah4213/32/764721_2.png) [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Post date:** [November 10, 2023, 4:05pm UTC](https://forums.unrealengine.com/t/how-to-rock-the-method-in-verse-v/1378537/1 "2023-11-10T16:05:01Z")

</div>

Hello!  
What I want to do is when I call the method , It runs and takes 3 seconds to finish the method.  
While this 3 seconds , even trying to call this method again, It can not.  
After 3 seconds this can be called again.

Is there a way to do this?  
Thank you!!

---

<div class="post-metadata">

**Author:** ![djpixel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@djpixel](https://forums.unrealengine.com/u/djpixel)\
**Post date:** [November 15, 2023, 1:02pm UTC](https://forums.unrealengine.com/t/how-to-rock-the-method-in-verse-v/1378537/2 "2023-11-15T13:02:02Z")

</div>

Something like this should work.  
It will prevent the method from being called if it is already running:

```auto
var IsMyMethodRunning: logic = false

MyMethod():void=
    if (IsMyMethodRunning?):
        return
    set IsMyMethodRunning = true
    defer:
        set IsMyMethodRunning = false

   # Put the actual code you want to run here

```
