Class UniExtKt

  • All Implemented Interfaces:

    
    public final class UniExtKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Uni<Unit> replaceWithUnit(Uni<?> $self) Ignore the item emitted by this Uni and replace it with Unit.
      final static <T extends Any> Uni<T> uni(Function0<T> supplier) Produce a Uni from given supplier in a non-suspending context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • replaceWithUnit

         final static Uni<Unit> replaceWithUnit(Uni<?> $self)

        Ignore the item emitted by this Uni and replace it with Unit. In contrast to Uni.replaceWithVoid the resulting Uni does not hold a null item, but an actual Unit.

      • uni

         final static <T extends Any> Uni<T> uni(Function0<T> supplier)

        Produce a Uni from given supplier in a non-suspending context. This is a shortcut for Uni.createFrom().item<T>(() -> T).