public/javascripts/yui/datasource/datasource-debug.js
function(nMsec, oRequest, oCallback, oCaller) {
    if(lang.isNumber(nMsec) && (nMsec >= 0)) {
        YAHOO.log("Enabling polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
        var oSelf = this;
        var nId = setInterval(function() {
            oSelf.makeConnection(oRequest, oCallback, oCaller);
        }, nMsec);
        this._aIntervals.push(nId);
        return nId;
    }
    else {
        YAHOO.log("Could not enable polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
    }
}
function(nMsec, oRequest, oCallback, oCaller) {
    if(lang.isNumber(nMsec) && (nMsec >= 0)) {
        YAHOO.log("Enabling polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
        var oSelf = this;
        var nId = setInterval(function() {
            oSelf.makeConnection(oRequest, oCallback, oCaller);
        }, nMsec);
        this._aIntervals.push(nId);
        return nId;
    }
    else {
        YAHOO.log("Could not enable polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
    }
}
function ( nMsec , oRequest , oCallback , oCaller ) { if ( lang . isNumber ( nMsec ) && ( nMsec >= 0 ) ) { YAHOO . log ( "Enabling polling to live data for \"" + oRequest + "\" at interval " + nMsec , "info" , this . toString ( ) ) ; var oSelf = this ; var nId = setInterval ( function ( ) { oSelf . makeConnection ( oRequest , oCallback , oCaller ) ; } , nMsec ) ; this . _aIntervals . push ( nId ) ; return nId ; } else { YAHOO . log ( "Could not enable polling to live data for \"" + oRequest + "\" at interval " + nMsec , "info" , this . toString ( ) ) ; } }
Sets up a polling mechanism to send requests at set intervals and forward
responses to given callback.

@method setInterval
@param nMsec {Number} Length of interval in milliseconds.
@param oRequest {Object} Request object.
@param oCallback {Function} Handler function to receive the response.
@param oCaller {Object} (deprecated) Use oCallback.scope.
@return {Number} Interval ID.
Sets up a polling mechanism to send requests at set intervals and forward responses to given callback .