Beispiel #1
0
 public Ticker createTicker(TickerCallback onTick)
 {
     this._tickers = this._tickers ?? new HashSet<Ticker>();
     var result = new _WidgetTicker<T>(onTick, this, debugLabel: "created by " + this);
     this._tickers.Add(result);
     return result;
 }
Beispiel #2
0
        public Ticker createTicker(TickerCallback onTick)
        {
            _tickers = _tickers ?? new HashSet <Ticker>();

            var result = new _WidgetTicker <T>(onTick, this,
                                               debugLabel: foundation_.kDebugMode ? "created by " + this : null);

            _tickers.Add(result);
            return(result);
        }
Beispiel #3
0
        public Ticker createTicker(TickerCallback onTick)
        {
            this._tickers = this._tickers ?? new HashSet <Ticker>();

            Func <string> debugLabel = null;

            D.assert(() => {
                debugLabel = () => "created by " + this;
                return(true);
            });
            var result = new _WidgetTicker <T>(onTick, this, debugLabel: debugLabel);

            this._tickers.Add(result);
            return(result);
        }
Beispiel #4
0
 internal void _removeTicker(_WidgetTicker<T> ticker)
 {
     D.assert(this._tickers != null);
     D.assert(this._tickers.Contains(ticker));
     this._tickers.Remove(ticker);
 }