mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
18 lines
301 B
JavaScript
18 lines
301 B
JavaScript
const bindings = require('../../index.node')
|
|
|
|
async function main() {
|
|
await Promise.resolve()
|
|
const a1 = new bindings.A((err, s) => {
|
|
console.info(s)
|
|
})
|
|
const a2 = new bindings.A((err, s) => {
|
|
console.info(s)
|
|
})
|
|
a1.call()
|
|
a2.call()
|
|
}
|
|
|
|
main().catch((e) => {
|
|
console.error(e)
|
|
})
|