I want to raise an event, but I do not want to get blocked by the event handler, because I do not care how or when the event is handled. I tried to raise the event like
MyEvent?.BeginInvoke(this, arg, null, null);
but I got a PlatformNotSupported exception. I found an answer for the reason, but it was about delegates, not specifically for raising events. Is the same for raising events? I should use
_ = Task.Run(()=>MyEvent?.Invoke(this, arg));
for my case, or is there any cleaner way?