Interface IReactor
A interface of consensus reactors.
Inherited Members
Namespace: Libplanet.Net.Consensus
Assembly: Libplanet.Net.dll
Syntax
public interface IReactor : IDisposable
Methods
| Improve this Doc View SourceStartAsync(CancellationToken)
Starts a reactor.
Declaration
Task StartAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token used to propagate notification that this operation should be canceled. |
Returns
Type | Description |
---|---|
Task | A awaitable tasks from reactor for starting. |
StopAsync(CancellationToken)
Stops a reactor.
Declaration
Task StopAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token used to propagate notification that this operation should be canceled. |
Returns
Type | Description |
---|---|
Task | A awaitable tasks from reactor for stopping. |