2021-03-31 22:31:37 +09:00
|
|
|
const bindings = require('../../index.node')
|
|
|
|
|
|
|
|
async function main() {
|
|
|
|
await Promise.resolve()
|
2023-01-11 19:54:45 +09:00
|
|
|
const a1 = new bindings.A((err, s) => {
|
|
|
|
console.info(s)
|
|
|
|
a1.unref()
|
|
|
|
})
|
|
|
|
const a2 = new bindings.A((err, s) => {
|
|
|
|
console.info(s)
|
|
|
|
a2.unref()
|
|
|
|
})
|
|
|
|
a1.call()
|
|
|
|
a2.call()
|
2021-03-31 22:31:37 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
main().catch((e) => {
|
|
|
|
console.error(e)
|
|
|
|
})
|