| @@ 33-39 (lines=7) @@ | ||
| 30 | * |
|
| 31 | * @return Task |
|
| 32 | */ |
|
| 33 | public function put($data, array $options = null) |
|
| 34 | { |
|
| 35 | $args = $options ? [$data, $options] : [$data]; |
|
| 36 | $result = $this->client->call($this->prefix.'put', $args); |
|
| 37 | ||
| 38 | return Task::createFromTuple($result[0]); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @param int|float|null $timeout |
|
| @@ 72-78 (lines=7) @@ | ||
| 69 | * |
|
| 70 | * @return Task |
|
| 71 | */ |
|
| 72 | public function release($taskId, array $options = null) |
|
| 73 | { |
|
| 74 | $args = $options ? [$taskId, $options] : [$taskId]; |
|
| 75 | $result = $this->client->call($this->prefix.'release', $args); |
|
| 76 | ||
| 77 | return Task::createFromTuple($result[0]); |
|
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * @param int $taskId |
|