Struct Rejectable
The Rejectable struct is used in the situation when you need to call Reject(Exception) or Reject(Exception), but you don't want to deal with the exact type.
Namespace: UnityEngine.Promise
Syntax
public struct Rejectable
Properties
isActive
Tells whether this Completer is active or not. A Completer is active while its Deferred is not released.
Declaration
public bool isActive { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Reject(Exception)
Rejects the handled promise for the given reason.
Declaration
public void Reject(Exception reason)
Parameters
Type | Name | Description |
---|---|---|
Exception | reason | The exception that prevented the handled promise to be fulfilled. |