Skip to content

Commit

Permalink
docs: refine api doc for setApiTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
weakish authored Jun 29, 2020
1 parent f4cea03 commit 3a095cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/LeanCloud/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ public static function initialize($appId, $appKey, $appMasterKey) {
}

/**
* settings curl timeout.
* @param int $timeout seconds
* Set a deadline for requests to complete.
*
* Note that file upload requests are not affected.
*
* @param integer $seconds
*/
public static function setApiTimeout($seconds) {
static::$apiTimeout = intval($seconds);
Expand Down

0 comments on commit 3a095cd

Please sign in to comment.