Skip to content

Commit e924be9

Browse files
authored
Tweak README
1 parent efcac47 commit e924be9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,8 @@ $total = $queue->stats('tasks.total');
237237
### Custom methods
238238

239239
Thanks to flexible nature of the [tarantool/queue](https://github.com/tarantool/queue/) module,
240-
you can easily create your own queue drivers or extend existing ones with an additional functionality.
241-
For example, let's say you want to add the `put_many` method to your `foobar` queue, which inserts
242-
multiple tasks in a transaction:
240+
you can easily create your own queue drivers or extend existing ones with an additional functionality.
241+
For example, you added the `put_many` method to your `foobar` queue, which inserts multiple tasks in a transaction:
243242

244243
```lua
245244
-- queues.lua
@@ -259,7 +258,7 @@ queue.tube.foobar.put_many = function(self, items)
259258
end
260259
```
261260

262-
To call it, pass the method name and corresponding arguments to `Queue::call()`:
261+
To call this method on a `$queue` object, use `Queue::call()`:
263262

264263
```php
265264
$result = $queue->call('put_many', [

0 commit comments

Comments
 (0)