Wraps subscribe method in virtual function.
struct TestObserver { void put(int n) { } void put(Object obj) { } } Observer!int observer = observerObject!int(TestObserver()); observer.put(0); observer.completed(); observer.failure(null); static assert(isObserver!(typeof(observer), int));
See Implementation
Wraps subscribe method in virtual function.