How to use the destroyed function from readable-stream
Find comprehensive JavaScript readable-stream.destroyed code examples handpicked from public code repositorys.
6950 6951 6952 6953 6954 6955 6956 6957 6958 6959
var cb = state.writecb; if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK(); onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb);else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state) || stream.destroyed; if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); }
2
3
1
readable-stream.call is the most popular function in readable-stream (1227 examples)