public WaitForSingleEventThunk(Squared.Util.Bind.BoundMember <EventHandler> evt) { Event = evt; Handler = OnEvent; Event.Add(Handler); Future.RegisterOnDispose(OnDispose); }
public static SignalFuture WaitForSingleEvent(Squared.Util.Bind.BoundMember <EventHandler> evt) { return((new WaitForSingleEventThunk(evt)).Future); }
public static Future <TEventArgs> WaitForSingleEvent <TEventArgs> (Squared.Util.Bind.BoundMember <EventHandler <TEventArgs> > evt) where TEventArgs : System.EventArgs { return((new WaitForSingleEventThunk <TEventArgs>(evt)).Future); }