Block and wait for xbox task's result

function xbox_task_result(
  resource $task,
  int $timeout_ms,
  mixed &$ret,
): int;


  • resource $task - The xbox task object created by xbox_task_start().
  • int $timeout_ms - How many milli-seconds to wait.
  • mixed &$ret - xbox message processing function's return value.

Return Values

  • int - - Response code following HTTP's responses. For example, 200 for success and 500 for server error.