mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
* Integrate with emnapi * resolve conflict * ignore wasm * generate wasi file * Add wasi test to workflow * Fix wasi template * emnapi new initialize api * Finish test * Purne tsconfig * Generate wasi worker * Fix electron test * Finalize check * Noop adjust_external_memory * Apply cr suggestions
8 lines
203 B
JavaScript
8 lines
203 B
JavaScript
const { ipcRenderer } = require('electron')
|
|
|
|
const { callLongThreadsafeFunction } = require('../index.node')
|
|
|
|
callLongThreadsafeFunction(() => {})
|
|
|
|
ipcRenderer.on('ping', () => ipcRenderer.send('pong'))
|