Skip to content

subprocess_started

faststream.cli.supervisors.utils.subprocess_started #

subprocess_started(
    *args: Any,
    t: DecoratedCallableNone,
    stdin_fileno: Optional[int]
) -> None

Start a subprocess.

PARAMETER DESCRIPTION
*args

Arguments to be passed to the subprocess.

TYPE: Any DEFAULT: ()

t

The decorated callable function.

TYPE: DecoratedCallableNone

stdin_fileno

File descriptor for the standard input of the subprocess.

TYPE: Optional[int]

RETURNS DESCRIPTION
None

None

Note

The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)

Source code in faststream/cli/supervisors/utils.py
def subprocess_started(
    *args: Any,
    t: DecoratedCallableNone,
    stdin_fileno: Optional[int],
) -> None:
    """Start a subprocess.

    Args:
        *args: Arguments to be passed to the subprocess.
        t: The decorated callable function.
        stdin_fileno: File descriptor for the standard input of the subprocess.

    Returns:
        None
    !!! note

        The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
    """
    if stdin_fileno is not None:  # pragma: no cover
        sys.stdin = os.fdopen(stdin_fileno)
    t(*args)

Last update: 2023-11-13