Probably slows things down with slower dispatch. Should definitely remove this, and consider making Chit a class with final methods.
|
static final class AlreadyDisposed implements Chit { |
|
@Override |
|
public boolean isDisposed() { |
|
return true; |
|
} |
|
|
|
@Override |
|
public void runWhenDisposed(Runnable whenDisposed) { |
|
whenDisposed.run(); |
|
} |
|
} |
Probably slows things down with slower dispatch. Should definitely remove this, and consider making
Chita class with final methods.durian-rx/src/main/java/com/diffplug/common/rx/ChitImpl.java
Lines 41 to 51 in 4691684