adam-mcneilly
08/09/2018, 6:17 PM(T) -> Unit
as a function type, how can I call this from Java? Does anyone have a code sample of this?Shawn
08/09/2018, 6:18 PM(T) -> null
? What type is null supposed to be here?adam-mcneilly
08/09/2018, 6:19 PMFlowable<T>.customSubscribeMethod(onNext: (T) -> Unit)
sorry misstyped null will editadam-mcneilly
08/09/2018, 6:19 PMRxUtilsKt.customSubscribeMethod(myFlowable, ???)
Shawn
08/09/2018, 6:19 PMShawn
08/09/2018, 6:19 PMConsumer<T>
or am I misunderstanding you?Ruckus
08/09/2018, 6:19 PMUnit.INSTANCE
)Ruckus
08/09/2018, 6:21 PMRxUtilsKt.customSubscribeMethod(myFlowable, it -> { ... })
adam-mcneilly
08/09/2018, 6:23 PMadam-mcneilly
08/09/2018, 6:23 PMRxUtilsKt.doAfterDelay(Flowable.just(1), input -> Unit.INSTANCE);
Shawn
08/09/2018, 6:24 PMadam-mcneilly
08/09/2018, 6:24 PMadam-mcneilly
08/09/2018, 6:25 PMadam-mcneilly
08/09/2018, 6:25 PMFunciton0<>
and when I wrote that the IDE let me rewrite as a lambdaadam-mcneilly
08/09/2018, 6:26 PMRxUtilsKt.doAfterDelay(Flowable.just(1), 100, () -> Unit.INSTANCE);
adam-mcneilly
08/09/2018, 6:26 PMShawn
08/09/2018, 6:26 PMadam-mcneilly
08/09/2018, 6:32 PMadam-mcneilly
08/09/2018, 6:37 PMadam-mcneilly
08/09/2018, 6:37 PM