Sfoglia il codice sorgente

Updated documentation to include ::getReturnCode

orolin 11 anni fa
parent
commit
ad40cd79fe
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Resources/docs/client.rst

+ 3 - 0
Resources/docs/client.rst

@@ -38,6 +38,8 @@ Request a job
     $result = $gearman
         ->doJob('MmoreramerinoTestBundleServicesMyAcmeWorker~doSomething', json_encode(array('value1')));
 
+    $returnCode = $gearman->getReturnCode();
+
 - doJob: Call the job and wait for the result
 - doNormalJob: Call the job and wait for the result ( Only newest gearman versions )
 - doHighJob: Call the job and wait for the result on High Preference
@@ -50,6 +52,7 @@ Request a job
     - It receives a job handle for the submitted job
 - callJob: Call the job with default method.
     - Defined in settings, work annotations or the job annotations
+- getReturnCode: Retrieve the return code from the last requested job.
 
 Tasks
 ~~~~~