public interface io.vertx.core.Promise<T> extends io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>
  minor version: 0
  major version: 59
  flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
  this_class: io.vertx.core.Promise
  super_class: java.lang.Object
{
  public static <T> io.vertx.core.Promise<T> promise();
    descriptor: ()Lio/vertx/core/Promise;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 39
            new io.vertx.core.impl.future.PromiseImpl
            dup
            invokespecial io.vertx.core.impl.future.PromiseImpl.<init>:()V
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    Signature: <T:Ljava/lang/Object;>()Lio/vertx/core/Promise<TT;>;

  public void handle(io.vertx.core.AsyncResult<T>);
    descriptor: (Lio/vertx/core/AsyncResult;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // io.vertx.core.Promise this
        start local 1 // io.vertx.core.AsyncResult asyncResult
         0: .line 50
            aload 1 /* asyncResult */
            invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
            ifeq 3
         1: .line 51
            aload 0 /* this */
            aload 1 /* asyncResult */
            invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
            invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
         2: .line 52
            goto 4
         3: .line 53
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* asyncResult */
            invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
            invokeinterface io.vertx.core.Promise.fail:(Ljava/lang/Throwable;)V
         4: .line 55
      StackMap locals:
      StackMap stack:
            return
        end local 1 // io.vertx.core.AsyncResult asyncResult
        end local 0 // io.vertx.core.Promise this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    5     0         this  Lio/vertx/core/Promise<TT;>;
            0    5     1  asyncResult  Lio/vertx/core/AsyncResult<TT;>;
    Signature: (Lio/vertx/core/AsyncResult<TT;>;)V
    RuntimeVisibleAnnotations: 
      io.vertx.codegen.annotations.GenIgnore()
    MethodParameters:
             Name  Flags
      asyncResult  

  public void complete();
    descriptor: (Ljava/lang/Object;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // io.vertx.core.Promise this
        start local 1 // java.lang.Object result
         0: .line 66
            aload 0 /* this */
            aload 1 /* result */
            invokeinterface io.vertx.core.Promise.tryComplete:(Ljava/lang/Object;)Z
            ifne 2
         1: .line 67
            new java.lang.IllegalStateException
            dup
            ldc "Result is already complete"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 69
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.Object result
        end local 0 // io.vertx.core.Promise this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0    this  Lio/vertx/core/Promise<TT;>;
            0    3     1  result  TT;
    Signature: (TT;)V
    MethodParameters:
        Name  Flags
      result  

  public void complete();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // io.vertx.core.Promise this
         0: .line 77
            aload 0 /* this */
            invokeinterface io.vertx.core.Promise.tryComplete:()Z
            ifne 2
         1: .line 78
            new java.lang.IllegalStateException
            dup
            ldc "Result is already complete"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 80
      StackMap locals:
      StackMap stack:
            return
        end local 0 // io.vertx.core.Promise this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lio/vertx/core/Promise<TT;>;

  public void fail(java.lang.Throwable);
    descriptor: (Ljava/lang/Throwable;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // io.vertx.core.Promise this
        start local 1 // java.lang.Throwable cause
         0: .line 89
            aload 0 /* this */
            aload 1 /* cause */
            invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/Throwable;)Z
            ifne 2
         1: .line 90
            new java.lang.IllegalStateException
            dup
            ldc "Result is already complete"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 92
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.Throwable cause
        end local 0 // io.vertx.core.Promise this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    3     0   this  Lio/vertx/core/Promise<TT;>;
            0    3     1  cause  Ljava/lang/Throwable;
    MethodParameters:
       Name  Flags
      cause  

  public void fail(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // io.vertx.core.Promise this
        start local 1 // java.lang.String message
         0: .line 101
            aload 0 /* this */
            aload 1 /* message */
            invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/String;)Z
            ifne 2
         1: .line 102
            new java.lang.IllegalStateException
            dup
            ldc "Result is already complete"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 104
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String message
        end local 0 // io.vertx.core.Promise this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    3     0     this  Lio/vertx/core/Promise<TT;>;
            0    3     1  message  Ljava/lang/String;
    MethodParameters:
         Name  Flags
      message  

  public abstract boolean tryComplete();
    descriptor: (Ljava/lang/Object;)Z
    flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
    Signature: (TT;)Z
    MethodParameters:
        Name  Flags
      result  

  public boolean tryComplete();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // io.vertx.core.Promise this
         0: .line 121
            aload 0 /* this */
            aconst_null
            invokeinterface io.vertx.core.Promise.tryComplete:(Ljava/lang/Object;)Z
            ireturn
        end local 0 // io.vertx.core.Promise this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lio/vertx/core/Promise<TT;>;

  public abstract boolean tryFail(java.lang.Throwable);
    descriptor: (Ljava/lang/Throwable;)Z
    flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
    MethodParameters:
       Name  Flags
      cause  

  public boolean tryFail(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // io.vertx.core.Promise this
        start local 1 // java.lang.String message
         0: .line 140
            aload 0 /* this */
            new io.vertx.core.impl.NoStackTraceThrowable
            dup
            aload 1 /* message */
            invokespecial io.vertx.core.impl.NoStackTraceThrowable.<init>:(Ljava/lang/String;)V
            invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/Throwable;)Z
            ireturn
        end local 1 // java.lang.String message
        end local 0 // io.vertx.core.Promise this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    1     0     this  Lio/vertx/core/Promise<TT;>;
            0    1     1  message  Ljava/lang/String;
    MethodParameters:
         Name  Flags
      message  

  public abstract io.vertx.core.Future<T> future();
    descriptor: ()Lio/vertx/core/Future;
    flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
    Signature: ()Lio/vertx/core/Future<TT;>;
    RuntimeVisibleAnnotations: 
      io.vertx.codegen.annotations.CacheReturn()

  public void handle(java.lang.Object);
    descriptor: (Ljava/lang/Object;)V
    flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
    Code:
      stack=2, locals=2, args_size=2
         0: .line 1
            aload 0
            aload 1
            checkcast io.vertx.core.AsyncResult
            invokeinterface io.vertx.core.Promise.handle:(Lio/vertx/core/AsyncResult;)V
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<TT;>;>;
SourceFile: "Promise.java"
    RuntimeVisibleAnnotations: 
      io.vertx.codegen.annotations.VertxGen()