Child
이 콘텐츠는 아직 번역되지 않았습니다.
Module @netwiv/api/plugins/shell · Kind Class
import { Child } from '@netwiv/api/plugins/shell';Constructor
Section titled “Constructor”new Child(pid: number)Instance members
Section titled “Instance members”kill(): Promise<void>Kills the child process.
pid: numberThe child process pid.
write(data: number[] | IOPayload): Promise<void>Writes data to the stdin.
Example
import { Command } from '@netwiv/api/plugins/shell';const command = Command.create('node');const child = await command.spawn();await child.write('message');await child.write([0, 1, 2, 3, 4, 5]);Upstream since 2.0.0
Descriptions come from the pinned @tauri-apps/plugin-shell@2.3.6 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.