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)
|
|
})
|