mirror of
https://github.com/napi-rs/napi-rs.git
synced 2026-01-18 15:16:51 +00:00
8 lines
186 B
JavaScript
8 lines
186 B
JavaScript
const { parentPort } = require('worker_threads')
|
|
|
|
const native = require('../index')
|
|
|
|
parentPort.postMessage(
|
|
native.Animal.withKind(native.Kind.Cat).whoami() + native.DEFAULT_COST,
|
|
)
|