(stream, state, cb)
| 25796 | } |
| 25797 | |
| 25798 | function endWritable(stream, state, cb) { |
| 25799 | state.ending = true; |
| 25800 | finishMaybe(stream, state); |
| 25801 | if (cb) { |
| 25802 | if (state.finished) processNextTick(cb);else stream.once('finish', cb); |
| 25803 | } |
| 25804 | state.ended = true; |
| 25805 | stream.writable = false; |
| 25806 | } |
| 25807 | |
| 25808 | // It seems a linked list but it is not |
| 25809 | // there will be only 2 of these for each stream |
no test coverage detected