static void Main() { var source = new SimpleColdSource(); var sub = new MySubscriber <string>(); source.Subscribe(sub); }
public static void SubscribeToKeyWatcher() { var source = new KeyWatcher(); var sub = new MySubscriber <char>(); source.Subscribe(sub); source.Run(); }