Exemple #1
0
    public void Subscribe(Action <T> action)
    {
        _actions.Add(action);

        if (_last != null)
        {
            emit(_last.t);
            _last = null;
        }
    }
Exemple #2
0
 public void OnNext(T t)
 {
     emit(t);
     _last = new Sergio <T>(t);
 }