Table of Contents

Class ParallelQueuedCommandExecutor

Namespace
DSharpPlus.CommandsNext.Executors
Assembly
DSharpPlus.CommandsNext.dll

A command executor which uses a bounded pool of executors to execute commands. This can limit the impact of commands on system resources, such as CPU usage.

public sealed class ParallelQueuedCommandExecutor : ICommandExecutor
Inheritance
object
ParallelQueuedCommandExecutor
Implements

Constructors

ParallelQueuedCommandExecutor()

Creates a new executor, which uses up to 75% of system CPU resources.

ParallelQueuedCommandExecutor(int)

Creates a new executor with specified degree of parallelism.

Properties

Parallelism

Gets the degree of parallelism of this executor.

Methods

Dispose()

Disposes of the resources used by this executor.