tasks/util/stream.js
function iterateWriteLinkedList () {
    if (!isIterating()) { return undefined; }

    let data = iterateData;
    let content = iterateData.item.content;

    data.item = data.item.next;

    if (data.item === null) {
        resetIterateData();

        writable.write(content, 'utf8', onWriteFinish);
    } else {
        writable.write(content, 'utf8', iterateWriteLinkedList);
    }
}
function iterateWriteLinkedList () {
    if (!isIterating()) { return undefined; }

    let data = iterateData;
    let content = iterateData.item.content;

    data.item = data.item.next;

    if (data.item === null) {
        resetIterateData();

        writable.write(content, 'utf8', onWriteFinish);
    } else {
        writable.write(content, 'utf8', iterateWriteLinkedList);
    }
}
function iterateWriteLinkedList ( ) { if ( ! isIterating ( ) ) { return undefined ; } let data = iterateData ; let content = iterateData . item . content ; data . item = data . item . next ; if ( data . item === null ) { resetIterateData ( ) ; writable . write ( content , 'utf8' , onWriteFinish ) ; } else { writable . write ( content , 'utf8' , iterateWriteLinkedList ) ; } }
Recursively write content in linked list.

@function iterateWriteLinkedList
@api private
Recursively write content in linked list .