Lines Matching refs:destroy
20 stream.destroy = common.mustCall();
60 readable.destroy = null;
197 readable.destroy(new Error('kaboom'));
208 readable.destroy(err);
236 console.log('destroy sync');
240 this.destroy(new Error('kaboom from read'));
255 console.log('destroy async');
264 this.destroy(new Error('kaboom'));
315 this.destroy(new Error('kaboom'));
338 readable.destroy();
420 readable.destroy();
444 readable.destroy(err);
471 console.log('destroy mid-stream errors');
484 r.destroy(null);
533 console.log('all next promises must be rejected on destroy');
543 r.destroy();
553 console.log('all next promises must be resolved on destroy with error');
564 r.destroy(err);
593 destroy(err, callback) {
598 r.destroy();
606 // Don't destroy if no auto destroy.
622 // Destroy if no auto destroy and premature break.
639 // Don't destroy before 'end'.
656 // AsyncIterator return should end even when destroy
665 const originalDestroy = r.destroy;
666 r.destroy = (err) => {
686 const originalDestroy = r.destroy;
687 r.destroy = (err) => {
705 r.destroy();
761 // Check explicit non-destroy with return true
819 _req.destroy(new Error('something happened'));