AsyncQueue<T>.OnEnqueued(T, Boolean) 方法

定义

在将值排入队列时调用。

protected:
 virtual void OnEnqueued(T value, bool alreadyDispatched);
protected:
 virtual void OnEnqueued(T value, bool alreadyDispatched);
 virtual void OnEnqueued(T value, bool alreadyDispatched);
protected virtual void OnEnqueued (T value, bool alreadyDispatched);
abstract member OnEnqueued : 'T * bool -> unit
override this.OnEnqueued : 'T * bool -> unit
Protected Overridable Sub OnEnqueued (value As T, alreadyDispatched As Boolean)

参数

value
T

排队的值。

alreadyDispatched
Boolean

true 如果项将跳过队列,因为取消排队程序已在等待某个项,则为 ;如果该项将跳过队列,则为 ; false 如果项实际已添加到队列中,则为 。

适用于