Table of Contents

Class ResolverTurn<T>

Namespace
MarymoorStudios.Core.Promises
Assembly
MarymoorStudios.Core.Promises.dll
public abstract class ResolverTurn<T> : Turn

Type Parameters

T
Inheritance
ResolverTurn<T>
Derived
Inherited Members

Constructors

ResolverTurn()

protected ResolverTurn()

Methods

OnFailure(Exception)

Execute the error path when the outcome is a failure.

protected abstract void OnFailure(Exception ex)

Parameters

ex Exception

The failed outcome.

OnSuccess(T)

Execute the success path when the outcome is a success.

protected abstract void OnSuccess(T value)

Parameters

value T

The successful outcome.

ResetTurnState()

Allows the turn to be reused (after Run()).

protected void ResetTurnState()

Run()

Runs the computation of this Turn when chosen for execution by the Scheduler.

protected override sealed void Run()