Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
allshared CompositeFuture all(List<Future<unknown>> futures)

Like all but with a list of futures.

When the list is empty, the returned future will be already completed.

allshared CompositeFuture all<T1, T2>(Future<T1?> f1, Future<T2?> f2)

Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.

The returned future fails as soon as one of f1 or f2 fails.

Parameters:
  • f1

    future

  • f2

    future

allshared CompositeFuture all<T1, T2, T3>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3)

Like all but with 3 futures.

allshared CompositeFuture all<T1, T2, T3, T4>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4)

Like all but with 4 futures.

allshared CompositeFuture all<T1, T2, T3, T4, T5>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4, Future<T5?> f5)

Like all but with 5 futures.

allshared CompositeFuture all<T1, T2, T3, T4, T5, T6>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4, Future<T5?> f5, Future<T6?> f6)

Like all but with 6 futures.

anyshared CompositeFuture any(List<Future<unknown>> futures)

Like any but with a list of futures.

When the list is empty, the returned future will be already completed.

anyshared CompositeFuture any<T1, T2>(Future<T1?> f1, Future<T2?> f2)

Return a composite future, succeeded when any futures is succeeded, failed when all futures are failed.

The returned future succeeds as soon as one of f1 or f2 succeeds.

Parameters:
  • f1

    future

  • f2

    future

anyshared CompositeFuture any<T1, T2, T3>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3)

Like any but with 3 futures.

anyshared CompositeFuture any<T1, T2, T3, T4>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4)

Like any but with 4 futures.

anyshared CompositeFuture any<T1, T2, T3, T4, T5>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4, Future<T5?> f5)

Like any but with 5 futures.

anyshared CompositeFuture any<T1, T2, T3, T4, T5, T6>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4, Future<T5?> f5, Future<T6?> f6)

Like any but with 6 futures.

joinshared CompositeFuture join(List<Future<unknown>> futures)

Like join but with a list of futures.

When the list is empty, the returned future will be already completed.

joinshared CompositeFuture join<T1, T2>(Future<T1?> f1, Future<T2?> f2)

Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.

It always wait until all its futures are completed and will not fail as soon as one of f1 or f2 fails.

Parameters:
  • f1

    future

  • f2

    future

joinshared CompositeFuture join<T1, T2, T3>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3)

Like join but with 3 futures.

joinshared CompositeFuture join<T1, T2, T3, T4>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4)

Like join but with 4 futures.

joinshared CompositeFuture join<T1, T2, T3, T4, T5>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4, Future<T5?> f5)

Like join but with 5 futures.

joinshared CompositeFuture join<T1, T2, T3, T4, T5, T6>(Future<T1?> f1, Future<T2?> f2, Future<T3?> f3, Future<T4?> f4, Future<T5?> f5, Future<T6?> f6)

Like join but with 6 futures.

Inherited Methods
Methods inherited from: Object
equals