# How do you implement your own listenable in Verse?

**URL:** <https://forums.unrealengine.com/t/how-do-you-implement-your-own-listenable-in-verse/832267>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [March 29, 2023, 3:13pm UTC](https://forums.unrealengine.com/t/how-do-you-implement-your-own-listenable-in-verse/832267 "2023-03-29T15:13:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![DiG3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig3/32/1225281_2.png) [@DiG3](https://forums.unrealengine.com/u/DiG3)\
**Post date:** [April 10, 2023, 11:40pm UTC](https://forums.unrealengine.com/t/how-do-you-implement-your-own-listenable-in-verse/832267/5 "2023-04-10T23:40:02Z")

</div>

Hello,  
you can’t initialize a `listenable` interface inside a class.  
For now, I recommend exposing an event like the `CountdownEndedEvent` (for example `OnTimerIteration`/`OnTick`) that lets users of the class `Await` it. You’d then `Signal` the event when needed.

I haven’t played around with it much, but maybe something like this could also be helpful to you:

```auto
# In this case the functions we accept should take one string parameter and return void.
my_fun := type{_(:string):void}

my_subscribable := class:
    var Funs<private>:[]my_fun = array{}
    
    Subscribe<public>(Fun:my_fun):void =
        set Funs += array{Fun}
    
    Dispatch<private>():void =
        for (Fun:Funs):
            Fun("Hello")

```

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-you-implement-your-own-listenable-in-verse/832267)._
