Table of Contents

Class Joiner

Namespace
MarymoorStudios.Core.Promises
Assembly
MarymoorStudios.Core.Promises.dll

Joins multiple promises together.

public sealed class Joiner : IDisposable
Inheritance
Joiner
Implements
Inherited Members

Constructors

Joiner()

Constructor.

public Joiner()

Properties

IsDisposed

True if Dispose() has been called.

public bool IsDisposed { get; }

Property Value

bool

Result

Resolves to the outcome of join.

public Promise Result { get; }

Property Value

Promise

Remarks

Can only resolve once the Joiner has been sealed with Dispose().

Methods

Create(out Promise)

Creates a new join-scope and yields it outcome.

public static Joiner Create(out Promise result)

Parameters

result Promise

The outcome of the join.

Returns

Joiner

The joiner.

Dispose()

public void Dispose()

Links p to this outcome.

public void Link(Promise p)

Parameters

p Promise

Links p to this outcome.

public void Link<T>(Promise<T> p)

Parameters

p Promise<T>

Type Parameters

T