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');
237
237
### Custom methods
238
238
239
239
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:
243
242
244
243
``` lua
245
244
-- queues.lua
@@ -259,7 +258,7 @@ queue.tube.foobar.put_many = function(self, items)
259
258
end
260
259
```
261
260
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() ` :
263
262
264
263
``` php
265
264
$result = $queue->call('put_many', [
You can’t perform that action at this time.
0 commit comments