docs.unity3d.com
    Show / Hide Table of Contents

    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.

    In This Article
    • Properties
      • isActive
    • Methods
      • Reject(Exception)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023