File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -237,9 +237,8 @@ $total = $queue->stats('tasks.total');
237237### Custom methods
238238
239239Thanks 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)
259258end
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', [
You can’t perform that action at this time.
0 commit comments