Show / Hide Table of Contents

Struct Epoch.RecycleBin

Encapsulates actions deferred previously by Defer(Action) method and its overloads.

Implements
IThreadPoolWorkItem
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public readonly struct Epoch.RecycleBin : IThreadPoolWorkItem
Remarks

The action can be called at any point in time. The call does not necessarily have to be protected by the epoch scope.

Properties

| Edit this page View Source

IsEmpty

Gets a value indicating that the action is empty.

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Clear(bool)

Invokes all deferred actions.

Declaration
public void Clear(bool throwOnFirstException = false)
Parameters
Type Name Description
bool throwOnFirstException

true if exceptions should immediately propagate; otherwise, false.

| Edit this page View Source

ClearAsync()

Invokes deferred actions as parallel task.

Declaration
public Task ClearAsync()
Returns
Type Description
Task

The task representing execution of deferred actions.

| Edit this page View Source

QueueCleanup()

Queues invocation of deferred actions to the thread pool.

Declaration
public void QueueCleanup()

Implements

IThreadPoolWorkItem

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾