/// <summary> /// Creates a new instance. /// </summary> /// <param name="listener">The listener to send the items to (can't be {@code null})</param> /// <param name="delay">The delay between items in milliseconds</param> private DelayedActionQueue( DelayedActionListener <E> listener, int delay ) { this._listener = listener; this._delay = delay; }
/// <summary> /// Create a new queue object and start it. /// </summary> /// <param name="listener"></param> /// <param name="delay"></param> /// <returns></returns> public static DelayedActionQueue <E> Create( DelayedActionListener <E> listener, int delay ) { var q = new DelayedActionQueue <E>( listener, delay ); q.Start(); return(q); }