Documentation
¶
Overview ¶
iojoin provides a utility for joining two concurrent units of work that share resources. It is used to implement the duplex bridge between the caller's stdio and the exec's stdio.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join runs two sides concurrently and returns once both have completed or the slower side is abandoned after grace. The first side to complete fires the onFirst hook, which is where the caller should tear down shared resources (close pipe ends, cancel a context) so the straggler can finish naturally. The caller owns the resources and must close them; Join does not close any of its arguments.
Types ¶
Click to show internal directories.
Click to hide internal directories.