IChannelExecutorGroup
Ecng.ComponentModel
The interface for a group of operations executed by ChannelExecutor.
Métodos
Add
public void Add(Func<CancellationToken, ValueTask> action)
iChannelExecutorGroup.Add(action)
Add async operation to the group.
- action
- Async operation to execute (receives CancellationToken).
AddAsync
public ValueTask AddAsync(Func<CancellationToken, ValueTask> action, CancellationToken cancellationToken)
result = iChannelExecutorGroup.AddAsync(action, cancellationToken)
Add async operation to the group asynchronously.
- action
- Async operation to execute (receives CancellationToken).
- cancellationToken
- Cancellation token.
Retorna: Task.