Handbook
Glossary
run-pipeline-element ( input-fd output-fd obj -- result )
Vocabulary
io
.
pipes
.
private
Inputs
input-fd
an
object
output-fd
an
object
obj
an
object
Outputs
result
an
object
Definition
IN:
io.pipes.private
GENERIC:
run-pipeline-element
( input-fd output-fd obj -- result )
Methods
USING:
combinators
destructors
io
io.pipes.private
kernel
quotations
;
M:
callable
run-pipeline-element
[
[
[
?reader
]
[
?writer
]
bi*
]
dip
[
( -- result )
call-effect
]
curry
with-streams*
]
with-destructors
;
USING:
accessors
destructors
io.launcher
io.pipes.private
kernel
;
M:
object
run-pipeline-element
[
>process
swap
>>stdout
swap
>>stdin
run-detached
]
[
[
drop
[
[
&dispose
drop
]
when*
]
bi@
]
with-destructors
]
3bi
wait-for-process
;