示例#1
0
            public WaitForSingleEventThunk(Squared.Util.Bind.BoundMember <EventHandler> evt)
            {
                Event   = evt;
                Handler = OnEvent;

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