示例#1
0
        public static DelayedCall StartAsync(Callback cb, int milliseconds)
        {
            DelayedCall dc = CreateAsync(cb, milliseconds);

            if (milliseconds > 0)
            {
                dc.Start();
            }
            else if (milliseconds == 0)
            {
                dc.FireNow();
            }

            return(dc);
        }
示例#2
0
 public DelayedCall(DelayedCall <object> .Callback cb, object data) : this()
 {
     PrepareDCObject(this, 0, false);
     oldCallback = cb;
     oldData     = data;
 }