UtilsKt
Keywords: net.corda.client.rpc.UtilsKt class
Date: 2023-09-18

net.corda.client.rpc

## Class UtilsKt

- net.corda.client.rpc.UtilsKt

-     public class UtilsKt

- - ### Constructor Detail

    - #### UtilsKt

          public UtilsKt()

  - ### Method Detail

    - #### notUsed

          public static <T> void notUsed(@NotNull
                                         rx.Observable<T> $this$notUsed)

      This function should be invoked on any unwanted Observables returned from RPC to release the server resources.

      subscribe({}, {}) was used instead of simply calling subscribe() because if an {@code onError} emission arrives (eg. due to an non-correct transaction, such as 'Not sufficient funds') then {@link OnErrorNotImplementedException} is thrown. As we won't handle exceptions from unused Observables, empty inputs are used to subscribe({}, {}).