PHP 8.2.30
Preview: e.js Size: 463 B
/opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules.bundled/tar/node_modules/minipass/e.js

const MP = require('stream').PassThrough // require('./')
const mp = new MP()
const wait = (n) => new Promise(resolve => setTimeout(resolve, n))
const t = require('tap')

t.test('end ordering', async t => {
  mp.on('end', _ => console.log('end'))
  mp.end()
  console.log('called end')
  // mp.resume()
  // console.log('called resume()')
  // mp.read()
  // console.log('called read')
  mp.on('data', _=>_)
  console.log('added data handler')
  await wait(1)
})

Directory Contents

Dirs: 1 × Files: 11

Name Size Perms Modified Actions
bench DIR
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
43 B lrw-r--r-- 2021-09-28 11:28:37
Edit Download
92 B lrw-r--r-- 2021-09-28 11:28:37
Edit Download
352 B lrw-r--r-- 2021-09-28 11:28:37
Edit Download
178 B lrw-r--r-- 2021-09-28 11:28:37
Edit Download
463 B lrw-r--r-- 2021-09-28 11:28:37
Edit Download
254 B lrw-r--r-- 2021-09-28 11:28:37
Edit Download
0 B lrw-r--r-- 2021-09-28 11:28:37
Edit Download
6.98 KB lrw-r--r-- 2021-09-28 11:28:37
Edit Download
53.65 KB lrw-r--r-- 2021-09-28 11:28:37
Edit Download
1.65 KB lrw-r--r-- 2021-09-28 11:28:37
Edit Download
1.73 KB lrw-r--r-- 2021-09-28 11:28:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).