Or better yet:
await ToSignal(Owner, SignalName.Ready);
By using SignalName
you avoid having to use string literals.
And Owner
might be better than parent, depending on what's happening in your code.
Also, don't forget that the method this line is in will have to be set as async
in order to use await
.