deno.process
UNSTABLE: 这里有一些关于如何结束进程的问题需要解决。
UNSTABLE*: There are some issues to work out with respect to when and how the process should be closed.
继承关系
- Process
索引
Properties
Methods
Properties
pid
pid: number
rid
rid: number
Optional stderr
stderr: ReadCloser
Optional stdin
stdin: WriteCloser
Optional stdout
stdout: ReadCloser
Methods
close
-
close(): void
返回 void
kill
-
kill(signo: number): void
参数
- ##### signo: number
返回 void
output
-
output(): Promise<Uint8Array>
-
缓冲区中的 stdout,会在
Deno.EOF
之后以Uint8Array
的形式返回。Buffer the stdout and return it as
Uint8Array
afterDeno.EOF
.在创建进程时,你必须将 stdout 设置为
"piped"
。You must set stdout to
"piped"
when creating the process.会在 stdout 完成后调用
close()
。This calls
close()
on stdout after its done.
返回 Promise<Uint8Array>
status
-
status(): Promise<ProcessStatus>
-
解析进程当前的状态。
Resolves to the current status of the process.
返回 Promise<ProcessStatus>
stderrOutput
-
stderrOutput(): Promise<Uint8Array>
-
缓冲区中的 stderr, 会在
Deno.EOF
之后以Uint8Array
的形式返回。Buffer the stderr and return it as
Uint8Array
afterDeno.EOF
.在创建进程时,你必须将 stderr 设置为
"piped"
。You must set stderr to
"piped"
when creating the process.会在 stderr 完成后调用
close()
。This calls
close()
on stderr after its done.
返回 Promise<Uint8Array>
图例说明
- Property
- Method
本文档使用 TypeDoc 生成。