• Run the unload function of the target object if it exists

    Type Parameters

    • T

    Parameters

    • target: {
          unload?: ((isAsync?: boolean) => T);
      }

      The target object that contains the unload function

      • Optionalunload?: ((isAsync?: boolean) => T)
          • (isAsync?): T
          • Parameters

            • OptionalisAsync: boolean

            Returns T

    • OptionalisAsync: boolean

      The caller identifies whether it is expecting the operation to complete synchronously or asynchronously. Even if the caller is not waiting the operation may still be performed asynchronously depending on the component and the reverse is also true.

    Returns T

    The result of the target function