RejectedPromise Class

A promise rejected with a reason (e.g. the exception thrown by a callback whose return type is a promise), given to ScriptEngine.WaitForAll.

public sealed class RejectedPromise : IEquatable<RejectedPromise>
Implements

Constructors

NameDescription
RejectedPromise(object?)A promise rejected with a reason (e.g. the exception thrown by a callback whose return type is a promise), given to ScriptEngine.WaitForAll.

RejectedPromise(object?)

ScriptEngine.cs

A promise rejected with a reason (e.g. the exception thrown by a callback whose return type is a promise), given to ScriptEngine.WaitForAll.

public RejectedPromise(object? Reason)

Parameters

Reason object?
The reason: a value of the engine, or an exception.

Properties

NameDescription
ReasonThe reason: a value of the engine, or an exception.

The reason: a value of the engine, or an exception.

public object? Reason { get; init; }

Property value

object?

Methods

NameDescription
Deconstruct(object?)
Equals(RejectedPromise?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(object?)

public void Deconstruct(out object? Reason)

Parameters

Reason object?

No documentation is available.

Equals overloads

Equals(RejectedPromise?)

public bool Equals(RejectedPromise? other)
Parameters
other RejectedPromise?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(RejectedPromise?, RejectedPromise?)
operator !=(RejectedPromise?, RejectedPromise?)

operator ==(RejectedPromise?, RejectedPromise?)

public static bool operator ==(RejectedPromise? left, RejectedPromise? right)

Parameters

left RejectedPromise?
right RejectedPromise?

Returns

bool

No documentation is available.

operator !=(RejectedPromise?, RejectedPromise?)

public static bool operator !=(RejectedPromise? left, RejectedPromise? right)

Parameters

left RejectedPromise?
right RejectedPromise?

Returns

bool

No documentation is available.