a781a4f27e
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
19 lines
331 B
JavaScript
19 lines
331 B
JavaScript
const bindings = require('../../index.node')
|
|
|
|
async function main() {
|
|
await Promise.resolve()
|
|
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()
|
|
}
|
|
|
|
main().catch((e) => {
|
|
console.error(e)
|
|
})
|