lib/Function.js
/**
 * Attach task repetition methods to the given task.
 *
 * @param t {task(done)} The task to decorate.
 * @param [abort] {function(reason)} A function that will terminate the execution of the current task composition if it's possible.
 */
Attach task repetition methods to the given task.
@param t {task(done)} The task to decorate.
@param [abort] {function(reason)} A function that will terminate the execution of the current task composition if it's possible.
Attach task repetition methods to the given task . @param t { task ( done ) } The task to decorate . @param [ abort ] { function ( reason ) } A function that will terminate the execution of the current task composition if it ' s possible .
function decorateTaskWithRepeat(t, abort) {
    var desc = {
        repeat:        { get: function () { return repeat.bind(t) } },
        repeatSeries:  { get: function () { return repeatSeries.bind(t) } },
        timeout:       { get: function () { return timeout.bind(t) } }
    }
    if(!t.abort)
        desc.abort = { value: abort || t.abort || noop }
    return Object.defineProperties(t, desc)
}
function decorateTaskWithRepeat ( t , abort ) { var desc = { repeat : { get : function ( ) { return repeat . bind ( t ) } } , repeatSeries : { get : function ( ) { return repeatSeries . bind ( t ) } } , timeout : { get : function ( ) { return timeout . bind ( t ) } } } if ( ! t . abort ) desc . abort = { value : abort || t . abort || noop } return Object . defineProperties ( t , desc ) }
Attach task repetition methods to the given task.
Attach task repetition methods to the given task .