❔ Help create a signals(event) system
Hello there I am trying to recreate a signal system like the one in Godot
Basically you can do something like this with it
and the function would suspend until the user call
EmitSignal("signal_name")
I tried recreating it but no luck can anyone help me or show me how to use Task or IAwaitable to do this6 Replies
You know C# already has events, right?
@thinker227 Yeah But they are basically a list of methods you cant suspend/resume a method with them
use
TaskCompletionSource
@mohamed I found people saying to use it but I don't really understand how it works
it helps you turn events into tasks
ah shoot you got me fired
I kinda wanted to do this thing myself for a long time
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.