Package com.smartgwt.client.util

# Class AsyncUtil

java.lang.Object
com.smartgwt.client.util.AsyncUtil

public class AsyncUtil extends Object
Contains utilities and constants to support asynchronous code.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AsyncUtil()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `getAsyncMessage(AsyncOperationResult result)`
  Returns a user-displayable message for the given `AsyncOperationResult` if its `type` is not SUCCESS.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AsyncUtil

    public AsyncUtil()

- ## Method Details

  - ### getAsyncMessage

    public static String getAsyncMessage(AsyncOperationResult result)
    Returns a user-displayable message for the given `AsyncOperationResult` if its `type` is not SUCCESS.

    `isc.getAsyncMessage()` and `AsyncUtil.getAsyncMessage()` are equivalent.

    Parameters:
      `result` - the `AsyncOperationResult`.
    Returns:
      If the `type` is SUCCESS, then `null`; otherwise, a user-displayable message describing the non-successful result. See `HTMLString`
    See Also:
      - `com.smartgwt.client.util.AsyncUtil#asyncErrorMessageGeneric`
      - `com.smartgwt.client.util.AsyncUtil#asyncCanceledMessage`
      - `com.smartgwt.client.util.AsyncUtil#asyncCanceledMessageGeneric`
      - `com.smartgwt.client.util.AsyncUtil#asyncDisabledMessageGeneric`
      - `com.smartgwt.client.util.AsyncUtil#asyncNonSuccessMessage`
      - `com.smartgwt.client.util.AsyncUtil#asyncNonSuccessMessageGeneric`