Skip to content
ConsoleMonster
Class

RunResult<TItem, TResult>

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Modifiers
sealed

The outcome of one item of ConsoleRun.ForEachAsync.

Inheritance

  • object
  • RunResult<TItem, TResult>

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Type Parameters

TItem
The item type.
TResult
The result type.

Properties

public int Index { get; } #

The item's position in the input (0-based).

public TItem? Item { get; } #

The item.

public TResult? Value { get; } #

The result, or the default value when the item failed.

public Exception? Error { get; } #

The error, or null when the item succeeded.

public TimeSpan Duration { get; } #

How long the item took.

public bool TimedOut { get; } #

Whether the item ran out of time.

public bool Succeeded { get; } #

Whether the item succeeded.

public int Attempts { get; } #

How many times the item ran: 1, or more when RunOptions.RetryCount retried it.