xbox_task_result

Block and wait for xbox task's result

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

Parameters

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

Returns

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