getOutputs() & getOutput()

/**
 * @return array<string|int, mixed>
 *
 * This method is used to get the outputs of the green threads.
 */
public static function getOutputs(): array;

/**
 * @param string|int $name
 * @return mixed
 *
 * This method is used to get the output of a green thread.
 */
public static function getOutput(string|int $name): mixed;

This is the static method that will return the results that those threads get when they complete.

Last updated