RC
Size: a a a
RC
AI
v
A
A
OP
c
c
sm
c
A
A
А
A
S'
public event Func<SocketInteraction, Task> InteractionCreated
, хочу преобразовать его в IObservable. Вызываю:Observable.FromEvent<Func<SocketInteraction, Task>, SocketInteraction>(и при попытке привязаться к нему получаю
action => InteractionCreated += action,
action => InteractionCreated -= action
);
System.ArgumentException: Cannot bind to the target method because its signature is not compatible with that of the delegate type.
Что я делаю не так?А
I
repository.getItems()
.debounce(2, TimeUnit.SECONDS)
.map { it.toSet() }
.map { Log.d("TAG", Thread.currentThread().name) }
.distinctUntilChanged()
.subscribeOn(Schedulers.single())
l
AI
AI