+3
src/child_process_ffi.mjs
+3
src/child_process_ffi.mjs
+4
-1
src/plinth/node/child_process.gleam
+4
-1
src/plinth/node/child_process.gleam
···
1
1
pub type ChildProcess {
2
-
ChildProcess(kill: fn() -> Nil, stdin: Stdin)
2
+
ChildProcess(stdin: Stdin)
3
3
}
4
4
5
5
pub type Stdin {
···
11
11
12
12
@external(javascript, "../../child_process_ffi.mjs", "spawn")
13
13
pub fn spawn(command: String, arguments: List(String)) -> ChildProcess
14
+
15
+
@external(javascript, "../../child_process_ffi.mjs", "kill")
16
+
pub fn kill(child_process: ChildProcess) -> Nil