Skip to content

Commit

Permalink
CDTM
Browse files Browse the repository at this point in the history
  • Loading branch information
edusca committed Feb 6, 2025
1 parent f24080f commit 05a203a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/DelayableDriver.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace Bernard;
Expand All @@ -9,11 +10,11 @@
interface DelayableDriver extends Driver
{
/**
* Insert a message with delay.
* Insert a message with delay in seconds.
*
* @param string $queueName
* @param string $message
* @param int $delay Delay in seconds
* @param int $delay
*/
public function pushMessageWithDelay($queueName, $message, $delay): void;
}
4 changes: 3 additions & 1 deletion src/Producer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ public function __construct(QueueFactory $queues, EventDispatcherInterface $disp
}

/**
* Produce a message with optional delay in seconds.
*
* @param string|null $queueName
* @param int $delay Delay (in seconds)
* @param int $delay
*/
public function produce(Message $message, $queueName = null, int $delay = 0): void
{
Expand Down

0 comments on commit 05a203a

Please sign in to comment.