public static SourceAwaiter GetAwaiter(this UnityEvent evt) { return(new SourceAwaiter(UnityEventSource.Request(evt))); }
public static SourceAwaiter <T> GetAwaiter <T>(this UnityEvent <T> evt) { var source = UnityEventSource <T> .Request(evt); return(new SourceAwaiter <T>(source)); }