Table of Contents

Class PromiseOnCompleted

Namespace
MarymoorStudios.Core.Promises
Assembly
MarymoorStudios.Core.Promises.dll
public static class PromiseOnCompleted
Inheritance
PromiseOnCompleted
Inherited Members

Methods

OnCompleted(Promise, Action, Action<Exception>)

Executes a continuation when the target resolves (with failure-coalescing).

public static void OnCompleted(this Promise target, Action success, Action<Exception> failure)

Parameters

target Promise

The trigger for execution.

success Action

The action to execute if the trigger succeeded.

failure Action<Exception>

The action to execute if the trigger failed.

OnCompleted<T>(Promise<T>, Action<T>, Action<Exception>)

Executes a continuation when the target resolves (with failure-coalescing).

public static void OnCompleted<T>(this Promise<T> target, Action<T> success, Action<Exception> failure)

Parameters

target Promise<T>

The trigger for execution.

success Action<T>

The action to execute if the trigger succeeded.

failure Action<Exception>

The action to execute if the trigger failed.

Type Parameters

T