public static DelayedCall CreateAsync(DelayedCall.Callback cb, int milliseconds) { DelayedCall delayedCall = new DelayedCall(); DelayedCall.PrepareDCObject(delayedCall, milliseconds, true); delayedCall.callback = cb; return(delayedCall); }
public DelayedCall(DelayedCall.Callback cb, int milliseconds) : this() { DelayedCall.PrepareDCObject(this, milliseconds, false); this.callback = cb; if (milliseconds > 0) { this.Start(); } }
public DelayedCall(DelayedCall <object> .Callback cb, int milliseconds, object data) : this() { DelayedCall.PrepareDCObject(this, milliseconds, false); this.oldCallback = cb; this.oldData = data; if (milliseconds > 0) { this.Start(); } }
public DelayedCall(DelayedCall <object> .Callback cb, object data) : this() { DelayedCall.PrepareDCObject(this, 0, false); this.oldCallback = cb; this.oldData = data; }
public DelayedCall(DelayedCall.Callback cb) : this() { DelayedCall.PrepareDCObject(this, 0, false); this.callback = cb; }