pagelet_server_task_status

Checks finish status of a pagelet task

function pagelet_server_task_status(
  resource $task,
): int;

Parameters

  • resource $task - The pagelet task handle returned from pagelet_server_task_start().

Returns

  • int - - PAGELET_NOT_READY if there is no data available, PAGELET_READY if (partial) data is available from pagelet_server_flush(), and PAGELET_DONE if the pagelet request is done.