Show / Hide Table of Contents

Interface IReactor

A interface of consensus reactors.

Inherited Members
IDisposable.Dispose()
Namespace: Libplanet.Net.Consensus
Assembly: Libplanet.Net.dll
Syntax
public interface IReactor : IDisposable

Methods

| Improve this Doc View Source

StartAsync(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium