forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
16
node_modules/teex/example.js
generated
vendored
Normal file
16
node_modules/teex/example.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
const tee = require('./')
|
||||
const { Readable } = require('streamx')
|
||||
|
||||
const s = new Readable()
|
||||
|
||||
for (let i = 0; i < 1000; i++) {
|
||||
s.push(Buffer.alloc(1024))
|
||||
}
|
||||
|
||||
const [a, b] = tee(s)
|
||||
|
||||
a.on('data', console.log)
|
||||
|
||||
setTimeout(function () {
|
||||
b.read()
|
||||
}, 1000)
|
||||
Loading…
Add table
Add a link
Reference in a new issue