Interface PlatformTask<T>

  • Type Parameters:
    T - task type

    public interface PlatformTask<T>
    • Method Detail

      • getObject

        @Nullable T getObject()
        Returns the actual object represented by this task/task id. Null if task cannot be instantly tracked.
        Returns:
        platform based object, or null if not tracked/cancellable
      • cancel

        void cancel()
        Cancels the task.
        Throws:
        java.lang.IllegalArgumentException - if the task is not cancellable