Table of Contents

Struct FromTask<TEvent>

Namespace
LfrlAnvil.Reactive.Composites
Assembly
LfrlAnvil.Reactive.Core.dll

Represents an event that is the result of a Task<TResult> completion.

public readonly struct FromTask<TEvent>

Type Parameters

TEvent
Inherited Members

Constructors

FromTask(Task<TEvent>)

Creates a new FromTask<TEvent> instance.

public FromTask(Task<TEvent> task)

Parameters

task Task<TEvent>

Source Task<TResult>.

Properties

Exception

Exception of the source task.

public AggregateException? Exception { get; }

Property Value

AggregateException

IsCanceled

Specifies whether or not the source task has been cancelled.

public bool IsCanceled { get; }

Property Value

bool

IsCompletedSuccessfully

Specifies whether or not the source task ran to completion.

public bool IsCompletedSuccessfully { get; }

Property Value

bool

IsFaulted

Specifies whether or not the source task has faulted.

public bool IsFaulted { get; }

Property Value

bool

Result

Result of the source task.

public TEvent? Result { get; }

Property Value

TEvent

Status

Status of the source task.

public TaskStatus Status { get; }

Property Value

TaskStatus

Methods

ToString()

Returns a string representation of this FromTask<TEvent> instance.

[Pure]
public override string ToString()

Returns

string

String representation.