コード例 #1
0
 @TypeParameters({
   @TypeParameter(value = "T1", variance = Variance.NONE),
   @TypeParameter(value = "T2", variance = Variance.NONE),
   @TypeParameter(value = "T3", variance = Variance.NONE),
   @TypeParameter(value = "T4", variance = Variance.NONE)
 })
 @DocAnnotation$annotation$(
     description = " Like [any](compositeFuture.type.html#any) but with 4 futures.\n")
 @TypeInfo("io.vertx.ceylon.core::CompositeFuture")
 public <T1, T2, T3, T4> CompositeFuture any(
     final @Ignore TypeDescriptor $reified$T1,
     final @Ignore TypeDescriptor $reified$T2,
     final @Ignore TypeDescriptor $reified$T3,
     final @Ignore TypeDescriptor $reified$T4,
     final @TypeInfo("io.vertx.ceylon.core::Future<T1?>") @Name("f1") Future<T1> f1,
     final @TypeInfo("io.vertx.ceylon.core::Future<T2?>") @Name("f2") Future<T2> f2,
     final @TypeInfo("io.vertx.ceylon.core::Future<T3?>") @Name("f3") Future<T3> f3,
     final @TypeInfo("io.vertx.ceylon.core::Future<T4?>") @Name("f4") Future<T4> f4) {
   io.vertx.core.Future<java.lang.Object> arg_0 =
       io.vertx.ceylon.core.Future.TO_JAVA.safeConvert(f1);
   io.vertx.core.Future<java.lang.Object> arg_1 =
       io.vertx.ceylon.core.Future.TO_JAVA.safeConvert(f2);
   io.vertx.core.Future<java.lang.Object> arg_2 =
       io.vertx.ceylon.core.Future.TO_JAVA.safeConvert(f3);
   io.vertx.core.Future<java.lang.Object> arg_3 =
       io.vertx.ceylon.core.Future.TO_JAVA.safeConvert(f4);
   CompositeFuture ret =
       io.vertx.ceylon.core.CompositeFuture.TO_CEYLON
           .converter()
           .safeConvert(io.vertx.core.CompositeFuture.any(arg_0, arg_1, arg_2, arg_3));
   return ret;
 }
コード例 #2
0
 @TypeParameters({
   @TypeParameter(value = "T1", variance = Variance.NONE),
   @TypeParameter(value = "T2", variance = Variance.NONE)
 })
 @DocAnnotation$annotation$(
     description =
         " Return a composite future, succeeded when any futures is succeeded, failed when all futures are failed.\n <p/>\n The returned future succeeds as soon as one of <code>f1</code> or <code>f2</code> succeeds.\n")
 @TypeInfo("io.vertx.ceylon.core::CompositeFuture")
 public <T1, T2> CompositeFuture any(
     final @Ignore TypeDescriptor $reified$T1,
     final @Ignore TypeDescriptor $reified$T2,
     final @TypeInfo("io.vertx.ceylon.core::Future<T1?>") @Name("f1") @DocAnnotation$annotation$(
             description = "future\n") Future<T1> f1,
     final @TypeInfo("io.vertx.ceylon.core::Future<T2?>") @Name("f2") @DocAnnotation$annotation$(
             description = "future\n") Future<T2> f2) {
   io.vertx.core.Future<java.lang.Object> arg_0 =
       io.vertx.ceylon.core.Future.TO_JAVA.safeConvert(f1);
   io.vertx.core.Future<java.lang.Object> arg_1 =
       io.vertx.ceylon.core.Future.TO_JAVA.safeConvert(f2);
   CompositeFuture ret =
       io.vertx.ceylon.core.CompositeFuture.TO_CEYLON
           .converter()
           .safeConvert(io.vertx.core.CompositeFuture.any(arg_0, arg_1));
   return ret;
 }
コード例 #3
0
 @DocAnnotation$annotation$(
     description =
         " Like [any](compositeFuture.type.html#any) but with a list of futures.<p>\n\n When the list is empty, the returned future will be already completed.\n")
 @TypeInfo("io.vertx.ceylon.core::CompositeFuture")
 public CompositeFuture any(
     final @TypeInfo("ceylon.language::List<io.vertx.ceylon.core::Future>") @Name("futures") ceylon
                     .language.List<
                 Future>
             futures) {
   java.util.List<io.vertx.core.Future> arg_0 =
       io.vertx.lang.ceylon.ToJava.convertList(futures, io.vertx.ceylon.core.Future.TO_JAVA);
   CompositeFuture ret =
       io.vertx.ceylon.core.CompositeFuture.TO_CEYLON
           .converter()
           .safeConvert(io.vertx.core.CompositeFuture.any(arg_0));
   return ret;
 }