Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay for message #3

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Add delay for message #3

merged 2 commits into from
Apr 8, 2024

Conversation

TalismanFR
Copy link
Contributor

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

How Use

Create Message

use Yiisoft\Queue\Redis\Message\Message;
$message = new Message('test', ['key' => 'value'], [], 2); //delay 2 second

or

use Yiisoft\Queue\Redis\Message\Message;
$message = new Message('test', ['key' => 'value'], []);
$message = $message->withDelay(2);

or

$message = new \Yiisoft\Queue\Message\Message('test', ['key' => 'value'], ['delay' => 2]);

Copy link

codecov bot commented Apr 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (master@da403f7). Click here to learn what that means.

Additional details and impacted files
@@            Coverage Diff             @@
##             master        #3   +/-   ##
==========================================
  Coverage          ?   100.00%           
  Complexity        ?        51           
==========================================
  Files             ?         5           
  Lines             ?       125           
  Branches          ?         0           
==========================================
  Hits              ?       125           
  Misses            ?         0           
  Partials          ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samdark samdark merged commit 8e2abf8 into yiisoft:master Apr 8, 2024
9 of 12 checks passed
@samdark
Copy link
Member

samdark commented Apr 8, 2024

Thank you!

@TalismanFR TalismanFR deleted the delay branch April 10, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants